1.0.0 • Published 2 years ago
@amitgroup/ng-router-loading v1.0.0
NgRouterLoading
This library was generated with Angular CLI version 12.2.0.
How to use
Step 1
Import NgRouterLoadingModule to AppModule
{
imports: [
...
NgRouterLoadingModule
...
]
}
or
{
imports: [
...
NgRouterLoadingModule.forRoot(options)
...
]
}
Step 2
Add directive ng-router-loading
for root html tag (router-outlet
or ng-container
) in AppComponent
<router-outlet ng-router-outlet></router-outlet>