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:
Chuck Jazdzewski
2017-09-26 10:18:10 -07:00
committed by Victor Berchet
parent 2cf52c1b55
commit f57b7df4d7
5 changed files with 0 additions and 28 deletions

View File

@ -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;