addStabilizers method
Returns a new instance of NgTestBed with stabilizers
added.
Implementation
NgTestBed<T> addStabilizers(Iterable<NgTestStabilizerFactory> stabilizers) {
// [_alwaysStable] is the default stabilizer when there is no other
// stabilizers. It should be removed when other stabilizers exist.
if (_createStabilizer == _alwaysStable) {
return fork(stabilizer: composeStabilizers(stabilizers));
}
return fork(
stabilizer: composeStabilizers([_createStabilizer, ...stabilizers]),
);
}