import { Component, ViewEncapsulation, OnInit } from '@angular/core'; import { IdService } from '@farris/ui-common'; /* 测试杀杀杀杀杀杀杀杀杀 */ @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'], encapsulation: ViewEncapsulation.None, providers: [IdService] }) export class AppComponent implements OnInit { current = 2; title = 'ng7-farris-ui'; constructor(private idser: IdService) {} ngOnInit() { console.log('uuid: ' + this.idser.uuid()); } changeValue(e: any) { console.log(e); } nextHandler() { this.current++; if (this.current > 3) { this.current = 1; } } changeValueHandler(e: any) { console.log(e); } change(e) { console.log(e); } select(e) { console.log(e); } open() {} changeStates(e) { console.log(e); } }