8000 docs(error/$rootScope/inprog): add missing "$timeout" · angular/angular.js@0e03644 · GitHub
[go: up one dir, main page]

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

Commit 0e03644

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

File tree

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;