Skip to content

Commit af08634

Browse files
author
Dale Haazen
committed
fix(directive): fix template definition for webpack
1 parent f70423b commit af08634

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/directiveComplex/name.directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const angular = require('angular');
44
export default angular.module('<%= scriptAppName %>', [])
55
.directive('<%= cameledName %>', function() {
66
return {
7-
<%_ if(filters.webpack) { -%>
7+
<%_ if(filters.indexOf('webpack') > -1) { -%>
88
template: require('./<%=name%>.<%=templateExt%>'),
99
<%_ } else { -%>
1010
templateUrl: '<%= htmlUrl %>',

0 commit comments

Comments
 (0)