@@ -352,7 +352,7 @@ element as a customer component.
352352Our `myCustomer` directive above is great, but it has a fatal flaw. We can only use it once within a
353353given scope.
354354
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
356356re-use such a directive:
357357
358358<example module="docsScopeProblemExample">
@@ -475,7 +475,6 @@ within our directive's template:
475475 angular.module('docsIsolationExample', [])
476476 .controller('Controller', ['$scope', function($scope) {
477477 $scope.naomi = { name: 'Naomi', address: '1600 Amphitheatre' };
478-
479478 $scope.vojta = { name: 'Vojta', address: '3456 Somewhere Else' };
480479 }])
481480 .directive('myCustomer', function() {
@@ -537,7 +536,7 @@ where:
537536In our `link` function, we want to update the displayed time once a second, or whenever a user
538537changes the time formatting string that our directive binds to. We will use the `$interval` service
539538to 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.
541540We also want to remove the `$interval` if the directive is deleted so we don't introduce a memory leak.
542541
543542<example module="docsTimeDirective">
0 commit comments