ngSwitch property
Implementation
@Input()
set ngSwitch(dynamic value) {
// Calculate set of views to display for this value.
var views = _valueViews[value];
if (views != null) {
_useDefault = false;
} else {
// Since there is no matching view for the value and there is no
// default case, nothing to do just return.
if (_useDefault) return;
_useDefault = true;
views = _valueViews[_whenDefault];
}
_emptyAllActiveViews();
_activateViews(views);
_switchValue = value;
}