docs(tutorial/step-2): note that ng-app now needs a module name

Closes #7655
This commit is contained in:
Peter Bacon Darwin
2014-07-25 14:35:36 +01:00
parent 37117ab53a
commit fefb7eda40

View File

@@ -65,6 +65,11 @@ __controller__ to the DOM at this point:
bindings, which are referring to our application model, which is set up in our `PhoneListCtrl`
controller.
<div class="alert alert-info">
Note: We have specified an {@link angular.Module Angular Module} to load using `ng-app="phonecatApp"`,
where `phonecatApp` is the name of our module. This module will contain the `PhoneListCtrl`.
</div>
<img class="diagram" src="img/tutorial/tutorial_02.png">
## Model and Controller