Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 51863f8

Browse files
hanstestbtford
authored andcommitted
docs(guide/directive): fix formatting
1 parent 9d4000d commit 51863f8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/content/guide/directive.ngdoc

+2-3
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ element as a customer component.
352352
Our `myCustomer` directive above is great, but it has a fatal flaw. We can only use it once within a
353353
given 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
356356
re-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:
537536
In our `link` function, we want to update the displayed time once a second, or whenever a user
538537
changes the time formatting string that our directive binds to. We will use the `$interval` service
539538
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.
541540
We 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

Comments
 (0)