File

src/app/modules/dashboard/dashboard.component.ts

Description

Корневой компонент рабочего стола

Выводит меню и содержимое

Implements

OnInit

Metadata

styleUrls dashboard.scss
templateUrl ./dashboard.html

Index

Properties
Methods

Constructor

constructor()

Конструктор

Methods

ngOnInit
ngOnInit()

Установка меню

Returns : void

Properties

menu
menu: any
Type : any

Элементы меню. Приходят из настроек

import { Component, OnInit } from '@angular/core';

import { MENU } from './menu';

/**
 * Корневой компонент рабочего стола
 *
 * Выводит меню и содержимое
 */
@Component({
  templateUrl: './dashboard.html',
  styleUrls: ['./dashboard.scss']
})
export class DashboardComponent implements OnInit {
  /**
   * Элементы меню. Приходят из настроек
   * @type {Array}
   */
  menu: any = [];

  /**
   * Конструктор
   */
  constructor() {
  }

  /**
   * Установка меню
   */
  ngOnInit() {
    this.menu = MENU;
  }
}
<glx-top-menu-bx [items]="menu"></glx-top-menu-bx>
<div class="container-fluid">
  <router-outlet></router-outlet>
</div>
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""