1

I would like to create a loading screen with an animated gif when routing in my AngularJs app.

Is it possible to make something generic for this ?

1 Answer 1

4

There definitely is.

$route

Check out the events available to you from the $route service.

$routeChangeStart, $routeChangeSuccess, and $routeChangeError will be the most useful. You can listen for these easily on the $rootScope and implement whatever logic you need to show a loading animation or otherwise.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.