填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

ng.applyChanges

把一个组件标记为需要检查(OnPush 组件中),并且在本组件所属的应用中同步执行执行变更检测。

Marks a component for check (in case of OnPush components) and synchronously performs change detection on the application this component belongs to.

      
      ng.applyChanges(component: {}): void
    
参数
component {}

标记为需要检查的组件。

Component to mark for check.

返回值

void