Skip to content

Commit 0e03644

Browse files
wytesk133petebacondarwin
authored andcommitted
docs(error/$rootScope/inprog): add missing "$timeout"
Closes angular#13630
1 parent 1120242 commit 0e03644

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: docs/content/error/$rootScope/inprog.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ To resolve this type of issue, either fix the api to be always synchronous or as
100100
your callback handler to always run asynchronously by using the `$timeout` service.
101101

102102
```
103-
function MyController($scope, thirdPartyComponent) {
103+
function MyController($scope, $timeout, thirdPartyComponent) {
104104
thirdPartyComponent.getData(function(someData) {
105105
$timeout(function() {
106106
$scope.someData = someData;

0 commit comments

Comments
 (0)