fix(compiler): remove deprecated Compiler.ngGetContentSelectors()
(#19347)
BREAKING CHANGE: The method `ngGetConentSelectors()`, deprecated in Angular 4.0, has been removed. Use `ComponentFactory.ngContentSelectors` instead.
This commit is contained in:

committed by
Victor Berchet

parent
2cf52c1b55
commit
f57b7df4d7
@ -67,16 +67,6 @@ export class JitCompiler {
|
||||
return Promise.resolve(this._compileModuleAndAllComponents(moduleType, false));
|
||||
}
|
||||
|
||||
getNgContentSelectors(component: Type): string[] {
|
||||
this._console.warn(
|
||||
'Compiler.getNgContentSelectors is deprecated. Use ComponentFactory.ngContentSelectors instead!');
|
||||
const template = this._compiledTemplateCache.get(component);
|
||||
if (!template) {
|
||||
throw new Error(`The component ${stringify(component)} is not yet compiled!`);
|
||||
}
|
||||
return template.compMeta.template !.ngContentSelectors;
|
||||
}
|
||||
|
||||
getComponentFactory(component: Type): object {
|
||||
const summary = this._metadataResolver.getDirectiveSummary(component);
|
||||
return summary.componentFactory as object;
|
||||
|
Reference in New Issue
Block a user