import { MENUS } from './services/menu/menus';

export class IndexController {
  constructor($state, $window) {
    'ngInject';

    this.$state = $state;
    this.$window = $window;
    this.minus = false;

    this.menus = JSON.parse(MENUS);

    this.userInfo = {
      userType: 7,
      username: '13681799594'
    };
    this.logo = 'app/sample/components/leftMenu/user1.png';
    this.bg = 'app/sample/components/leftMenu/sideNavBg.png';
  }

  onMenuMinusClicked() {
    this.minus = !this.minus;
  }

  goToCounter() {
    this.$state.go('main.tCounter');
  }
}