UNPKG

bixi

Version:

企业级中后台前端解决方案

24 lines (20 loc) 561 B
import { Component } from '@angular/core'; import { MetaService } from '../../../core/meta.service'; import { MobileService } from '../../../core/mobile.service'; @Component({ selector: 'app-content', templateUrl: './content.component.html', host: { '[class.main-wrapper]': 'true', }, }) export class ContentComponent { isMobile: boolean; opened = false; constructor(public meta: MetaService, private mobileSrv: MobileService) { this.mobileSrv.change.subscribe(res => (this.isMobile = res)); } to() { this.opened = false; } }