https://github.com/hdimitrieski/ngrx-modal
https://github.com/hdimitrieski/ngrx-modal
angular dialog modal ngrx
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hdimitrieski/ngrx-modal
- Owner: hdimitrieski
- License: mit
- Created: 2018-09-30T02:34:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-01T18:33:09.000Z (over 7 years ago)
- Last Synced: 2025-08-02T06:39:16.985Z (8 months ago)
- Topics: angular, dialog, modal, ngrx
- Language: TypeScript
- Size: 241 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ngrx-modal
[](https://travis-ci.com/hdimitrieski/ngrx-modal)
Handle presenting modal dialogs via NgRx store.
## Installation
```
npm install ngrx-modal --save
yarn add ngrx-modal
```
##Setup
```ts
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`