@@ -352,7 +352,7 @@ element as a customer component.
352
352
Our `myCustomer` directive above is great, but it has a fatal flaw. We can only use it once within a
353
353
given scope.
354
354
355
- In its current implementation, we'd need to create a different controller each time In order to
355
+ In its current implementation, we'd need to create a different controller each time in order to
356
356
re-use such a directive:
357
357
358
358
<example module="docsScopeProblemExample">
@@ -475,7 +475,6 @@ within our directive's template:
475
475
angular.module('docsIsolationExample', [])
476
476
.controller('Controller', ['$scope', function($scope) {
477
477
$scope.naomi = { name: 'Naomi', address: '1600 Amphitheatre' };
478
-
479
478
$scope.vojta = { name: 'Vojta', address: '3456 Somewhere Else' };
480
479
}])
481
480
.directive('myCustomer', function() {
@@ -537,7 +536,7 @@ where:
537
536
In our `link` function, we want to update the displayed time once a second, or whenever a user
538
537
changes the time formatting string that our directive binds to. We will use the `$interval` service
539
538
to call a handler on a regular basis. This is easier than using `$timeout` but also works better with
540
- end-to-end testing, where we want to ensure that all $timeouts have completed before completing the test.
539
+ end-to-end testing, where we want to ensure that all `$timeout`s have completed before completing the test.
541
540
We also want to remove the `$interval` if the directive is deleted so we don't introduce a memory leak.
542
541
543
542
<example module="docsTimeDirective">
0 commit comments