registerOnChange method

void registerOnChange(
  1. Function fn
)

Register a listener for change events.

Used internally to connect the model with the ValueAccessor which will write the model value to the View. NOTE: Should only be called internally by angular. Use valueChanges or statusChanges to get updates on the Control.

Implementation

void registerOnChange(Function fn) {
  _onChange = fn;
}