angular / 5 / api / core / changedetectionstrategy.html

ChangeDetectionStrategy

enum

Overview

enum ChangeDetectionStrategy {
  OnPush: 0
  Default: 1
}

Members

OnPush: 0

OnPush means that the change detector's mode will be initially set to CheckOnce.

Default: 1

Default means that the change detector's mode will be initially set to CheckAlways.

© 2010–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v5.angular.io/api/core/ChangeDetectionStrategy