Giter Site home page Giter Site logo

ngxs-ionic-router-plugin's Introduction

IonicRouterPlugin for NGXS

npm version License

Router Plugin for Ionic 5 and NGXS 3.7.1 or higher.

Angular @ngxs/store ionic @fivethree/@fivethree/ngxs-ionic-router-plugin
11 3.7.1+ 5.x.x 1.0.0
8/9 3.6.x+ 5.x.x 0.3.x
8/9 3.6.x+ 4.x.x 0.2.x
7 3.3.4+ 4.x.x 0.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)

ngxs-ionic-router-plugin's People

Contributors

marcjulian avatar renovate-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

thenaim

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.