本文整理匯總了TypeScript中ng-redux.INgRedux類的典型用法代碼示例。如果您正苦於以下問題:TypeScript INgRedux類的具體用法?TypeScript INgRedux怎麽用?TypeScript INgRedux使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了INgRedux類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: constructor
constructor($ngRedux: INgRedux, authActions: IAuthActions) {
'ngInject';
this.isSiteAdmin = authActions.isSiteAdmin;
this.logout = () => $ngRedux.dispatch(router.stateGo('logout'));
this.disconnect = $ngRedux.connect(this.mapStateToThis)(this);
}
示例2: constructor
constructor($ngRedux: INgRedux) {
'ngInject';
this.disconnect = $ngRedux.connect(this.mapStateToThis.bind(this))(this);
this.setActive = (index: number): Function => $ngRedux.dispatch(router.stateGo(this.tabs[index].name));
}
示例3: dispatch
dispatch(payload: any) {
return this.$ngRedux.dispatch(payload);
}
示例4:
this.logout = () => $ngRedux.dispatch(router.stateGo('logout'));
示例5:
this.setActive = (index: number): Function => $ngRedux.dispatch(router.stateGo(this.tabs[index].name));