【发布时间】:2016-10-18 22:44:53
【问题描述】:
有没有办法监听我的应用组件中的选项卡变化?
//app.component.ts
import {Component, ElementRef} from '@angular/core';
@Component({
selector: 'app-component',
templateUrl: 'app.component.html'
})
export class AppComponent {
//this isn't working
onSelectedIndexChanged(args) {
console.log("changing");
}
}
【问题讨论】:
标签: angular nativescript