angular2-busy icon indicating copy to clipboard operation
angular2-busy copied to clipboard

Busy and Router Events

Open figuerres opened this issue 8 years ago • 0 comments

the angular router has navigation events that can be subscribed to. this is now starting to be a common way to do the "busy" state as this will start before the new view is loaded and allows a better visual transition
also api calls that are needed on view init can now be moved to a resolver service that is called in the router logic.

this means that the pattern of doing a busy inside a component can often be removed. so it would be good if we started to have a common busy that will work with the router events. this can allow almost all busys to be removed from compnents and just have one for the application in the root / app.component level.

i am starting to see how to do this and can this busy be adapted to work with that style / pattern.

figuerres avatar Dec 01 '17 14:12 figuerres