web:javascript:angular:ngrx
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
web:javascript:angular:ngrx [2018/12/11 17:38] – [Sélecteurs] sgariepy | web:javascript:angular:ngrx [2022/02/02 00:42] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 196: | Ligne 196: | ||
) { } | ) { } | ||
- | // tslint: | ||
@Effect() loadCompanies$ = this.actions$ | @Effect() loadCompanies$ = this.actions$ | ||
.ofType(companyActions.LOAD_COMPANIES) | .ofType(companyActions.LOAD_COMPANIES) | ||
Ligne 204: | Ligne 203: | ||
}); | }); | ||
- | // tslint: | ||
@Effect() deleteCompany$ = this.actions$ | @Effect() deleteCompany$ = this.actions$ | ||
.ofType(companyActions.DELETE_COMPANY) | .ofType(companyActions.DELETE_COMPANY) | ||
Ligne 253: | Ligne 251: | ||
- | ====== Dispatching | + | ====== Dispatching |
+ | Le // | ||
+ | <code javascript> | ||
+ | constructor(private store: Store< | ||
+ | </ | ||
+ | |||
+ | Par la suite, on peut lancer des actions: | ||
+ | |||
+ | <code javascript> | ||
+ | this.store.dispatch(new ProductsFetch()); | ||
+ | </ | ||
Ligne 286: | Ligne 294: | ||
Le sélecteur '' | Le sélecteur '' | ||
+ | |||
+ | * [[https:// | ||
+ | |||
====== Sources ====== | ====== Sources ====== |
web/javascript/angular/ngrx.1544546288.txt.gz · Dernière modification : 2022/02/02 00:43 (modification externe)