fix(upgrade): allow directives with empty template

This commit is contained in:
Alejandro Caravaca Puchades
2015-12-10 13:23:47 +01:00
committed by vsavkin
parent b8e69a21a9
commit 2ca5e38a78
2 changed files with 22 additions and 1 deletions
@@ -120,7 +120,7 @@ export class UpgradeNg1ComponentAdapterBuilder {
compileTemplate(compile: angular.ICompileService, templateCache: angular.ITemplateCacheService,
httpBackend: angular.IHttpBackendService): Promise<any> {
if (this.directive.template) {
if (this.directive.template !== undefined) {
this.linkFn = compileHtml(this.directive.template);
} else if (this.directive.templateUrl) {
var url = this.directive.templateUrl;