1.0.0 • Published 4 years ago

@fivethree/ngxs-ionic-router-plugin v1.0.0

Weekly downloads
84
License
MIT
Repository
github
Last release
4 years ago

IonicRouterPlugin for NGXS

npm version License

Router Plugin for Ionic 5 and NGXS 3.7.1 or higher.

Angular@ngxs/storeionic@fivethree/@fivethree/ngxs-ionic-router-plugin
113.7.1+5.x.x1.0.0
8/93.6.x+5.x.x0.3.x
8/93.6.x+4.x.x0.2.x
73.3.4+4.x.x0.1.0

📦 Installation

npm install @fivethree/ngxs-ionic-router-plugin --save

# or if you are using yarn
yarn add @fivethree/ngxs-ionic-router-plugin

🔨 Usage

Import the module into your root application module:

import { NgModule } from '@angular/core';
import { NgxsModule } from '@ngxs/store';
import { NgxsIonicRouterPluginModule } from '@fivethree/ngxs-ionic-router-plugin';

@NgModule({
  imports: [NgxsModule.forRoot(states), NgxsIonicRouterPluginModule.forRoot()]
})
export class AppModule {}

Now the route will be reflected in your store under the ionicRouter state name.

🧭 Navigation

new NavigateRoot(path: string | UrlTree | any[], options?: NavigationOptions)

new NavigateForward(path: string | UrlTree | any[], options?: NavigationOptions)

new NavigateBackward(path: string | UrlTree | any[], options?: NavigationOptions)

new NavigateBack(options?: AnimationOptions)

1.0.0

4 years ago

1.0.0-dev.0

4 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago