Skip to content
This repository was archived by the owner on Nov 4, 2025. It is now read-only.
This repository was archived by the owner on Nov 4, 2025. It is now read-only.

Building the Server on page 205. #72

@samseen

Description

@samseen

After adding the JSON file as a variable in the server.js of Amazeriffic, will there have to be any changes in the app.js file? I think the main method of app.js needs a toDoObjects to be passed to it, but the $document.ready(function () { ... requires a todos.json file. Which shouldn't be existing anymore since we've renamed it to todos.OLD.json on page 204. Will app.js still be called using the $.getJSON element?

$(document).ready(function () {
    $.getJSON("todos.json", function (toDoObjects) {
        // we'll call main with toDos as an argument
        main(toDoObjects);
    })
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions