Triggering change detection manually in Angular

后端 未结 5 875
滥情空心
滥情空心 2020-11-21 11:47

I\'m writing an Angular component that has a property Mode(): string.

I would like to be able to set this property programmatically not in response to a

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-11-21 11:56

    ChangeDetectorRef.detectChanges() - similar to $scope.$digest() -- i.e., check only this component and its children

提交回复
热议问题