p.location-badge.
exported from angular2/lifecycle_hooks
defined in angular2/src/core/compiler/interfaces.ts (line 72)
:markdown
Overrides the default change detection.
`doCheck()` gets called to check the changes in the directives instead of the default
change detection mechanism.
It is invoked every time the change detection is triggered.
## Example
```
@Component(...)
class MyComponent implements DoCheck {
doCheck(): void {
// Custom logic to detect changes
}
}
```
.l-main-section
h2 Members
.l-sub-section
h3#doCheck doCheck
pre.prettyprint
code.
doCheck()
:markdown