hi guys 1 question about this
_ComponentResolver & _ComponentFactoryResolver
Before i use _ComponentResolver but console log says it's deprecated
// this._ComponentResolver.resolveComponent(LoginComponent).then((factory) 
=>
// this.viewContainerRef.createComponent(factory, 0, this.injector))
// .then(ref => {
// ref.changeDetectorRef.detectChanges();
// return ref;
// });

the new way now is _ComponentFactoryResolver

this._ComponentFactoryResolver.resolveComponentFactory(LoginComponent).
create(this.injector,[], 'base_level').changeDetectorRef.detectChanges();

.
_ComponentResolver reload templateURL and re compile ...
_ComponentFactoryResolver load the component ignore templateURL and 
recompile ...

you can see if you use network tab on chrome dev tools only 
_ComponentResolver reload the TemplateURL ...

can _ComponentFactoryResolver do the templateURL reload like 
_ComponentResolver always do ..

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to