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

Commit

Permalink
docs(error/$rootScope/inprog): add missing "$timeout"
Browse files Browse the repository at this point in the history
Closes #13630
  • Loading branch information
wytesk133 authored and petebacondarwin committed Jan 4, 2016
1 parent e2a0368 commit 8a63071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/error/$rootScope/inprog.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8a63071

Please sign in to comment.