docs(error/$rootScope/inprog): add missing "$timeout"

Closes #13630
This commit is contained in:
Waitaya Krongapiradee
2015-12-25 14:07:34 -08:00
committed by Peter Bacon Darwin
parent 112024271b
commit 0e03644dad
+1 -1
View File
@@ -100,7 +100,7 @@ To resolve this type of issue, either fix the api to be always synchronous or as
your callback handler to always run asynchronously by using the `$timeout` service.
```
function MyController($scope, thirdPartyComponent) {
function MyController($scope, $timeout, thirdPartyComponent) {
thirdPartyComponent.getData(function(someData) {
$timeout(function() {
$scope.someData = someData;