Angular 2 Loading Bar
Based on https://github.com/chieffancypants/angular-loading-bar and idea from (@rodrigouroz) https://github.com/rodrigouroz [source from angular/angular#2684]
Requirements: Angular 2.0.0-beta.1+
-
include the loading bar as a dependency for your app.
bootstrap(AppComponent, [ LoadingBar.HTTP_PROVIDERS ]);
-
render tag loading-bar int your root component (and set directive LoadingBar to component directives)
<loading-bar></loading-bar>
-
That's it -- you're done!