Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update write-app.md #565

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 9 additions & 2 deletions app/codelab/write-app.md
Expand Up @@ -8,9 +8,16 @@ The files that you see in the web browser can be found in the `app` subfolder of

## Create a new template to show a todo list

Open `views/main.html`.
First of all, we have to tell our Webapp the name of the AngularJS module we are about to build. The index.html file is the startingpoint of our application and therefore the place to define the name of our module.

To start from a cleaner slate, delete everything from your *main.html* file except for the `div` with a class of `"jumbotron"`. Replace `"jumbotron"` with the class name `"container"`.
Open `index.html`.

Simply change "ngAppApp" to "mytodoApp". Look for the according line in the index.html file and make shure it looks like this:
```html
<body ng-app="mytodoApp">
```

To start from a cleaner slate, open `views/main.html` and delete everything from your *main.html* file except for the `div` with a class of `"jumbotron"`. Replace `"jumbotron"` with the class name `"container"`.

This is all you should have in *main.html* now:

Expand Down