本文整理匯總了TypeScript中@angular-redux/store.NgRedux.getState方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript NgRedux.getState方法的具體用法?TypeScript NgRedux.getState怎麽用?TypeScript NgRedux.getState使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類@angular-redux/store.NgRedux
的用法示例。
在下文中一共展示了NgRedux.getState方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: ngOnInit
ngOnInit() {
let options = this.storeId? this.ngRedux.getState()[this.storeId].options : this.ngRedux.getState().options;
if(options && options[this.option]){
this.active = true
}
}
示例2:
this.streams.subscribe((streamsState: StreamState[]) => {
console.log(streamsState);
this.adjustContainer(this.ngRedux.getState().layout, streamsState);
if (JSON.stringify(this.videoElement) !== JSON.stringify(this.domSanitizer.bypassSecurityTrustHtml(streamsState[this.videoContainerId].playerHtml))) {
this.videoElement = this.domSanitizer.bypassSecurityTrustHtml(streamsState[this.videoContainerId].playerHtml);
}
});
示例3: ladeBilanz
ladeBilanz() {
let id = this.store.getState().inventur.inventurId;
this.query.send(
QueryType.LeseEroeffnungsbilanz,
{inventurId: id},
ResultType.Eroeffnungsbilanz);
}
示例4: beginneInventur
beginneInventur(id: any) {
this.command.send(
CommandType.BeginneInventur,
{id: id},
{});
const state = this.store.getState();
}
示例5:
this.geolocationCoordinates$.subscribe((location: GeoJSON.Position) => {
this.currentLocation = location;
// If it is the first view, then set the current center
if (this.ngRedux.getState().firstView && location) {
this.center = location;
}
});
示例6: leseInventar
leseInventar() {
let state = this.store.getState().inventur;
let id = state.inventurId;
this.query.send(
QueryType.LeseInventar,
{id: id},
ResultType.Inventar);
}
示例7: erfasseInventar
erfasseInventar(eingabe: InventurEingabe) {
let id = this.store.getState().inventur.inventurId;
this.command.send(
CommandType.ErfasseInventar,
{id: id, ...eingabe},
{}
)
}
示例8: state
protected state(): AppStateModel {
return this.store.getState();
}