fix(upgrade): allow directives with empty template
This commit is contained in:
committed by
vsavkin
parent
b8e69a21a9
commit
2ca5e38a78
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user