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

Commit 8428a0a

Browse files
callado4btford
authored andcommitted
docs(error/$controller/noscp): fix example
Fix the "correct" example to have the proper syntax for creating the locals object and provide a more explicit explanation as to how the scope object should be provided.
1 parent 14a92a5 commit 8428a0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: docs/content/error/$controller/noscp.ngdoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ $controller(MyController);
1212
$controller(MyController, {scope: newScope});
1313
```
1414

15-
To fix the example above please provide a scope to the $controller call:
15+
To fix the example above please provide a scope (using the `$scope` property in the locals object) to the $controller call:
1616

1717
```
18-
$controller(MyController, {$scope, newScope});
18+
$controller(MyController, {$scope: newScope});
1919
```
2020

2121
Please consult the {@link ng.$controller $controller} service api docs to learn more.

0 commit comments

Comments
 (0)