-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add $location service #2
Comments
Yes, the reason we didn't use it was because at the time we need to call |
We've changed things since then I remember now. It might be possible, will try it out! Hopefully it will allow unit-testing of that part. Busy creating demos atm. |
This issue can be the request for a pure $location refactor. If you do just the $location bit with the tests you have it would be awesome. Please sync down the latest code though, just did some big updates. |
Two things to think about is routing.
|
@seriema about:
Could you create a fail spec in the test?
$routeProvider
.when('/', {
templateUrl: 'views/movies-table-list.html',
controller: 'MoviesCtrl',
reloadOnSearch: false
})
.otherwise({
redirectTo: '/movies/list/'
});
}); Could you give access to the demo code? All the best... |
The demo code is in the |
There are some benefits If use the module use $location instead window.location
http://docs.angularjs.org/guide/$location
The text was updated successfully, but these errors were encountered: