在修改完组件数据之后调用下面两句:
this.changeDetectorRef.markForCheck(); this.changeDetectorRef.detectChanges();
注入到构造函数
constructor( private changeDetectorRef:ChangeDetectorRef ){}