Skip to content

Commit 03f3336

Browse files
author
Alex Malkevich
committed
fix(host): template gen ovveride for directives
1 parent 1898eee commit 03f3336

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

projects/ngx-testing/src/lib/host-generator.service.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,8 @@ export class HostGeneratorService {
103103
: this.extraConfig.hostTag;
104104

105105
const template =
106-
this.extraConfig.template || templateTag
107-
? this.genDirectiveTemplate(templateTag, io)
108-
: '';
106+
this.extraConfig.template ||
107+
(templateTag ? this.genDirectiveTemplate(templateTag, io) : '');
109108

110109
return this.genComponent({ selector, template }, dirType, io);
111110
}

0 commit comments

Comments
 (0)