【发布时间】:2016-06-03 02:28:42
【问题描述】:
我有一个认证服务,它使认证变量等于真或假。
checkAuthentication(){
this._authService.getAuthentication()
.subscribe(value => this.authenticated = value);
}
this.authenticated 的值发生变化时如何执行函数? ngOnChanges 没有接受更改。
【问题讨论】:
标签: typescript angular