本文整理汇总了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();
}