NetanelBasal
8/10/2018 - 6:49 AM

akita-layout.store.ts

export type LayoutState = {
  sideNavOpen: boolean;
}

const initialState = {
  sideNavOpen: false
};

@StoreConfig({ name: 'layout' })
export class LayoutStore extends Store<LayoutState> {

  constructor() {
    super(initialState);
  }

  updateSideNavState(status: boolean) {
    this.update({ sideNavOpen: status });
  }

}