@@ -101,8 +101,8 @@ PlatformRef getPlatform() {
101101 * Shortcut for ApplicationRef.bootstrap.
102102 * Requires a platform the be created first.
103103 */
104- ComponentRef coreBootstrap (
105- Injector injector, ComponentFactory componentFactory) {
104+ ComponentRef < dynamic /*= C */ > coreBootstrap/*< C >*/ (
105+ Injector injector, ComponentFactory < dynamic /*= C */ > componentFactory) {
106106 ApplicationRef appRef = injector.get (ApplicationRef );
107107 return appRef.bootstrap (componentFactory);
108108}
@@ -112,7 +112,7 @@ ComponentRef coreBootstrap(
112112 * waits for asynchronous initializers and bootstraps the component.
113113 * Requires a platform the be created first.
114114 */
115- Future <ComponentRef > coreLoadAndBootstrap (
115+ Future <ComponentRef < dynamic > > coreLoadAndBootstrap (
116116 Injector injector, Type componentType) {
117117 ApplicationRef appRef = injector.get (ApplicationRef );
118118 return appRef.run (() {
@@ -210,7 +210,7 @@ abstract class ApplicationRef {
210210 * Register a listener to be called each time `bootstrap()` is called to bootstrap
211211 * a new root component.
212212 */
213- void registerBootstrapListener (void listener (ComponentRef ref));
213+ void registerBootstrapListener (void listener (ComponentRef < dynamic > ref));
214214 /**
215215 * Register a listener to be called when the application is disposed.
216216 */
@@ -237,7 +237,8 @@ abstract class ApplicationRef {
237237 * ### Example
238238 * {@example core/ts/platform/platform.ts region='longform'}
239239 */
240- ComponentRef bootstrap (ComponentFactory componentFactory);
240+ ComponentRef <dynamic /*= C */ > bootstrap/*< C >*/ (
241+ ComponentFactory <dynamic /*= C */ > componentFactory);
241242 /**
242243 * Retrieve the application [Injector] .
243244 */
@@ -287,7 +288,7 @@ class ApplicationRef_ extends ApplicationRef {
287288 /** @internal */
288289 List <Function > _disposeListeners = [];
289290 /** @internal */
290- List <ComponentRef > _rootComponents = [];
291+ List <ComponentRef < dynamic > > _rootComponents = [];
291292 /** @internal */
292293 List <Type > _rootComponentTypes = [];
293294 /** @internal */
@@ -338,7 +339,7 @@ class ApplicationRef_ extends ApplicationRef {
338339 });
339340 });
340341 }
341- void registerBootstrapListener (void listener (ComponentRef ref)) {
342+ void registerBootstrapListener (void listener (ComponentRef < dynamic > ref)) {
342343 this ._bootstrapListeners.add (listener);
343344 }
344345
@@ -390,7 +391,8 @@ class ApplicationRef_ extends ApplicationRef {
390391 return isPromise (result) ? completer.promise : result;
391392 }
392393
393- ComponentRef bootstrap (ComponentFactory componentFactory) {
394+ ComponentRef <dynamic /*= C */ > bootstrap/*< C >*/ (
395+ ComponentFactory <dynamic /*= C */ > componentFactory) {
394396 if (! this ._asyncInitDone) {
395397 throw new BaseException (
396398 "Cannot bootstrap as there are still asynchronous initializers running. Wait for them using waitForAsyncInitializers()." );
@@ -419,15 +421,15 @@ class ApplicationRef_ extends ApplicationRef {
419421 }
420422
421423 /** @internal */
422- void _loadComponent (ComponentRef componentRef) {
424+ void _loadComponent (ComponentRef < dynamic > componentRef) {
423425 this ._changeDetectorRefs.add (componentRef.changeDetectorRef);
424426 this .tick ();
425427 this ._rootComponents.add (componentRef);
426428 this ._bootstrapListeners.forEach ((listener) => listener (componentRef));
427429 }
428430
429431 /** @internal */
430- void _unloadComponent (ComponentRef componentRef) {
432+ void _unloadComponent (ComponentRef < dynamic > componentRef) {
431433 if (! ListWrapper .contains (this ._rootComponents, componentRef)) {
432434 return ;
433435 }
0 commit comments