1
0
Fork 0
peertube/client/src/app/app.component.ts

28 lines
729 B
TypeScript
Raw Normal View History

2016-05-13 12:18:37 +00:00
import { Component } from '@angular/core';
import { ROUTER_DIRECTIVES } from '@angular/router';
2016-03-14 12:50:19 +00:00
import { MenuAdminComponent } from './admin';
import { MenuComponent } from './menu.component';
import { SearchComponent, SearchService } from './shared';
2016-07-08 15:15:14 +00:00
import { VideoService } from './videos';
2016-03-14 12:50:19 +00:00
@Component({
selector: 'my-app',
template: require('./app.component.html'),
styles: [ require('./app.component.scss') ],
directives: [ MenuAdminComponent, MenuComponent, ROUTER_DIRECTIVES, SearchComponent ],
providers: [ VideoService, SearchService ]
2016-03-14 12:50:19 +00:00
})
export class AppComponent {
isInAdmin = false;
2016-05-24 21:00:58 +00:00
onEnteredInAdmin() {
this.isInAdmin = true;
2016-03-14 12:50:19 +00:00
}
onQuittedAdmin() {
this.isInAdmin = false;
2016-03-14 12:50:19 +00:00
}
}