Skip to content

Commit 35fd998

Browse files
devversionvivian-hu-zz
authored andcommittedDec 14, 2018
fix(schematics): drag-drop schematic two consecutive commas (#14446)
Similar to dd6065c#diff-0971fc26ab0589f93c1344ce29da61e4, we should also fix the issue for the drag-drop schematic.
1 parent e44cc52 commit 35fd998

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/cdk/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import { CdkDragDrop, moveItemInArray, transferArrayItem } from '@angular/cdk/dr
1111
<%= indentTextContent(resolvedFiles.stylesheet, 4) %>
1212
`],<% } else { %>
1313
styleUrls: ['./<%= dasherize(name) %>.component.<%= styleext %>'],<% } %><% if(!!viewEncapsulation) { %>
14-
encapsulation: ViewEncapsulation.<%= viewEncapsulation %><% } if (changeDetection !== 'Default') { %>,
15-
changeDetection: ChangeDetectionStrategy.<%= changeDetection %><% } %>
14+
encapsulation: ViewEncapsulation.<%= viewEncapsulation %>,<% } if (changeDetection !== 'Default') { %>
15+
changeDetection: ChangeDetectionStrategy.<%= changeDetection %>,<% } %>
1616
})
1717
export class <%= classify(name) %>Component {
1818
todo = [

0 commit comments

Comments
 (0)
Please sign in to comment.