1.0.5 • Published 3 years ago

@tinkoff/navigation-skeleton v1.0.5

Weekly downloads
135
License
Apache-2.0
Repository
github
Last release
3 years ago

Tinkoff Navigation Skeleton

Build npm version angular-open-source-starter

This component allows you to show skeletons of pages during navigation process.

Install

$ npm install @tinkoff/navigation-skeleton

How to use

  1. Add NavigationSkeletonModule, to the imports section of root module.

    @NgModule({
       ...
       imports: [
           ...
           RouterModule.forRoot(...),
           NavigationSkeletonModule,
       ],
    })
    export class AppModule {}
  2. Change <router-outlet></router-outlet> to

    <tcs-navigation-skeleton>
        <router-outlet></router-outlet>
    </tcs-navigation-skeleton>
  3. Add skeleton component to the route definition
    const route: NavigationSkeletonRoute = {
       path: '...',
       component: ...,
       skeleton: {
           component: MySkeletonComponent,
       },
    };

Demo

https://stackblitz.com/edit/tcs-navigation-skeleton

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago