Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 592 Bytes

README.md

File metadata and controls

31 lines (24 loc) · 592 Bytes

ngrx-modal

Travis

Handle presenting modal dialogs via NgRx store.

Installation

npm install ngrx-modal --save

yarn add ngrx-modal

##Setup

import { NgrxModalModule } from 'ngrx-modal';
import { AppComponent } from './app.component';

@NgModule({
  imports: [
    BrowserModule,
    NgrxModalModule.forRoot({
      stateKey: 'modal'
    })
  ],
  bootstrap: [AppComponent],
})
export class AppModule {}
  • stateKey: The name of reducer key, defaults to modals