mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-02 09:00:34 +08:00
committed by
Peter Bacon Darwin
parent
4d7e1cef37
commit
f827d64c2e
@@ -529,7 +529,7 @@ hashPrefix.
|
||||
# Testing with the $location service
|
||||
|
||||
When using `$location` service during testing, you are outside of the angular's {@link
|
||||
api/ng.$rootScope.Scope scope} life-cycle. This means it's your responsibility to call `scope.$apply()`.
|
||||
ng.$rootScope.Scope scope} life-cycle. This means it's your responsibility to call `scope.$apply()`.
|
||||
|
||||
```js
|
||||
describe('serviceUnderTest', function() {
|
||||
|
||||
Reference in New Issue
Block a user