55
66<ul doc-tutorial-nav="2"></ul>
77
8-
98Now, it's time to make the web page dynamic — with AngularJS. We will also add a test that verifies
109the code for the controller we are going to add.
1110
@@ -148,7 +147,9 @@ To learn more about AngularJS scopes, see the {@link ng.$rootScope.Scope Angular
148147</div>
149148
150149
151- # Testing
150+ ## Testing
151+
152+ ### Testing Controllers
152153
153154The "AngularJS way" of separating controller from the view, makes it easy to test code as it is being
154155developed. If our controller were available on the global namespace, we could simply instantiate it
@@ -174,7 +175,7 @@ code in AngularJS. Since testing is such a critical part of software development
174175create tests in AngularJS so that developers are encouraged to write them.
175176
176177
177- ## Testing non-global Controllers
178+ ### Testing non-global Controllers
178179
179180In practice, you will not want to have your controller functions in the global namespace. Instead,
180181you can see that we have registered it via a constructor function on the `phonecatApp` module.
@@ -222,7 +223,7 @@ describe('PhoneListController', function() {
222223</div>
223224
224225
225- ## Writing and Running Tests
226+ ### Writing and Running Tests
226227
227228Many AngularJS developers prefer the syntax of
228229[Jasmine's Behavior-Driven Development (BDD) framework][jasmine-home], when writing tests. Although
@@ -269,7 +270,7 @@ To run the tests, and then watch the files for changes execute: `npm test`
269270</div>
270271
271272
272- # Experiments
273+ ## Experiments
273274
274275<div></div>
275276
@@ -324,7 +325,7 @@ To run the tests, and then watch the files for changes execute: `npm test`
324325 `toBe(4)`.
325326
326327
327- # Summary
328+ ## Summary
328329
329330We now have a dynamic application which separates models, views, and controllers, and we are testing
330331as we go. Let's go to {@link step_03 step 3} to learn how to improve our application's architecture,
0 commit comments