ngAfterContentInit method
void
ngAfterContentInit(
)
Implementation
@override
void ngAfterContentInit() {
_isContentInit = true;
if (_preselectedValue != null) {
// Since this is updating children that were already dirty-checked,
// need to delay this change until next angular cycle.
_ngZone.runAfterChangesObserved(() {
if (_preselectedValue == null) return; // Overridden before callback.
// Initialize preselect now, this will trigger tabIndex reset.
selected = _preselectedValue;
// The preselected value should be used only once.
_preselectedValue = null;
});
} else {
// Initialize tabIndex.
_resetTabIndex();
}
}