The built-in routing object in AngularJS, which can map the browser URL to a defined route.

learn more… | top users | synonyms

46
votes
9answers
14k views

Delaying AngularJS route change until model loaded to prevent flicker

I am wondering if there is a way (similar to Gmail) for Angular to delay showing a new route until after each model and it's data has been fetched using its respective services. For example, if there ...
1
vote
2answers
225 views

Toggle visibility of a ng-include depending on route

I have the following configuration: $routeProvider .when('/cars', { templateUrl: 'app/cars/index.html', controller: 'CarsCtrl', reloadOnSearch: false }) .when('/bikes', { templateUrl: ...
1
vote
3answers
685 views

AngularJS: How to hide the template content until user is authenticated?

My app has 2 pages: main.html and login.html. When not authenticated users go to /main they should be redirected to /login. The problem is that main.html is rendered first, and after a second or so, ...