From 24f742baa32719892d0872fd2a87c66d76381f4a Mon Sep 17 00:00:00 2001 From: Waitaya Krongapiradee Date: Fri, 25 Dec 2015 14:07:34 -0800 Subject: [PATCH] docs(error/$rootScope/inprog): add missing "$timeout" --- docs/content/error/$rootScope/inprog.ngdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/error/$rootScope/inprog.ngdoc b/docs/content/error/$rootScope/inprog.ngdoc index fb5d09620a11..2ba0aaf3d0b6 100644 --- a/docs/content/error/$rootScope/inprog.ngdoc +++ b/docs/content/error/$rootScope/inprog.ngdoc @@ -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;