aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/admin/menu-admin.component.ts
blob: b23f7409e8016cc0871ece2274202a7ce0bd8ad6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { Component, Output, EventEmitter } from '@angular/core';
import { ROUTER_DIRECTIVES } from '@angular/router';

@Component({
  selector: 'my-menu-admin',
  template: require('./menu-admin.component.html'),
  directives: [ ROUTER_DIRECTIVES ]
})
export class MenuAdminComponent {
  @Output() quittedAdmin = new EventEmitter<boolean>();

  quitAdmin() {
    this.quittedAdmin.emit(true);
  }
}