Skip to content

Commit

Permalink
docs(error/$rootScope/inprog): add missing "$timeout"
Browse files Browse the repository at this point in the history
  • Loading branch information
wytesk133 authored and petebacondarwin committed Jan 4, 2016
1 parent 1120242 commit 0e03644
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 0e03644

Please sign in to comment.