@tinkoff/navigation-skeleton
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

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

Package Sidebar

Install

npm i @tinkoff/navigation-skeleton

Weekly Downloads

4

Version

1.0.5

License

Apache-2.0

Unpacked Size

151 kB

Total Files

30

Last publish

Collaborators

  • yeahga
  • sradyukov
  • hondasmx
  • makar_l
  • tinkoffbank
  • dmitry-korolev
  • rouland
  • ishivan
  • ytsareva
  • shoom3301
  • waterplea
  • meskill
  • marsibarsi
  • zig-green
  • super_oleg
  • dersizes
  • alexkvak