0
angularで動作するreduxのストアプロパティにアクセスすることはできません。reduxストアのプロパティにアクセスできない
IAppには2つのプロパティがあります。最初はインターフェイスで、2つ目は数値です。
interface AppStoreInterface {
layoutInterface: LayoutInterface,
numero: number
}
私は問題なく数字にアクセスできますが、レイアウトインターフェイスにアクセスしようとすると、問題は発生します。
これはモジュールです:
export class AppModule {
constructor(
ngRedux: NgRedux<AppStoreInterface>,
public devTools: DevToolsExtension
) {
const storeEnhancers = devTools.isEnabled() ? [devTools.enhancer()] : [];
ngRedux.configureStore(
rootReducer,
INITIAL_STATE,
[],
storeEnhancers
);
}
}
、これはコンポーネントです:
export class MainLayoutComponent implements OnInit {
@select(['layoutInterface', 'sidebarStatus']) sidebarStatus$: boolean;
@select('numero') test$ :number;
constructor(
public translate: TranslateService,
public dialog: MdDialog,
private ngRedux: NgRedux<AppStoreInterface>,
private actions: LayoutActions
) {
const browserLang: string = translate.getBrowserLang();
translate.use(browserLang.match(/en|es/) ? browserLang : 'en');
this.siteStyle = "app";
this.boxed = "";
this.align = "start";
this.currentLang = "en";
this.showSettings = false;
this.showLeftButtton = false;
this.userLoggedIn = false;
//this.store = this.getStoreService();
//this.layoutInterface = this.getLayoutInterface();
}
}
は私が間違って何をしているのですか?