fix(compiler): only sets viewDefinition absUrl if the view has either a template or templateUrl
fixes #1326 closes #1327
This commit is contained in:

committed by
Tobias Bosch

parent
b9eab463f7
commit
3d62546314
@ -205,7 +205,7 @@ export class Compiler {
|
||||
var templateAbsUrl = null;
|
||||
if (isPresent(view.templateUrl)) {
|
||||
templateAbsUrl = this._urlResolver.resolve(componentUrl, view.templateUrl);
|
||||
} else {
|
||||
} else if (isPresent(view.template)) {
|
||||
// Note: If we have an inline template, we also need to send
|
||||
// the url for the component to the renderer so that it
|
||||
// is able to resolve urls in stylesheets.
|
||||
|
Reference in New Issue
Block a user