A no-op implementation of ApplicationRef, useful for testing.
- Inheritance
- Object
- ApplicationRef
- MockApplicationRef
- Annotations
Constructors
Properties
- componentFactories → List<ComponentFactory>
-
read-only
- componentTypes → List<Type>
-
read-only
- hashCode → int
-
Get a hash code for this object.
read-only, inherited - injector → Injector
-
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited - zone → NgZone
-
read-only
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
bootstrap(
ComponentFactory componentFactory) → ComponentRef -
Bootstrap a new component at the root level of the application.
-
dispose(
) → void -
Dispose of this application and all of its components.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
registerBootstrapListener(
void listener(ComponentRef ref)) → void -
Register a listener to be called each time
bootstrap()
is called to bootstrap a new root component. -
registerDisposeListener(
void dispose()) → void -
Register a listener to be called when the application is disposed.
-
run(
dynamic callback()) → dynamic -
Runs the given
callback
in the zone and returns the result of the call. -
tick(
) → void -
Invoke this method to explicitly process change detection and its side-effects.
-
toString(
) → String -
Returns a string representation of this object.
inherited -
waitForAsyncInitializers(
) → Future -
Returns a promise that resolves when all asynchronous application initializers are done.