refactor(codegen): produce .ngfactory.dart/ts files instead of .template.dart/ts files.

This is needed as we will soon store other
things into the generated files, not
only the templates.
This commit is contained in:
Tobias Bosch
2016-04-19 08:26:43 -07:00
parent 0c600cf6e3
commit c06b0a2371
42 changed files with 96 additions and 96 deletions

View File

@ -126,7 +126,7 @@ function _resolveStyleStatements(compileResult: StylesCompileResult): o.Statemen
function _templateModuleUrl(comp: CompileDirectiveMetadata): string {
var moduleUrl = comp.type.moduleUrl;
var urlWithoutSuffix = moduleUrl.substring(0, moduleUrl.length - MODULE_SUFFIX.length);
return `${urlWithoutSuffix}.template${MODULE_SUFFIX}`;
return `${urlWithoutSuffix}.ngfactory${MODULE_SUFFIX}`;
}
function _stylesModuleUrl(stylesheetUrl: string, shim: boolean): string {