From ae00ffc8e70df7ec0ff4cf87573e02cf14b51310 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Mon, 10 Dec 2018 18:35:43 +0100 Subject: [PATCH] fix(schematics): drag-drop schematic two consecutive commas Similar to https://github.com/angular/material2/commit/dd6065cec47647980291bd2c24067cdc71966f33#diff-0971fc26ab0589f93c1344ce29da61e4, we should also fix the issue for the drag-drop schematic. --- .../__name@dasherize__.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cdk/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts b/src/cdk/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts index 990aaceba8a8..cc75311c5e04 100644 --- a/src/cdk/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +++ b/src/cdk/schematics/ng-generate/drag-drop/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts @@ -11,8 +11,8 @@ import { CdkDragDrop, moveItemInArray, transferArrayItem } from '@angular/cdk/dr <%= indentTextContent(resolvedFiles.stylesheet, 4) %> `],<% } else { %> styleUrls: ['./<%= dasherize(name) %>.component.<%= styleext %>'],<% } %><% if(!!viewEncapsulation) { %> - encapsulation: ViewEncapsulation.<%= viewEncapsulation %><% } if (changeDetection !== 'Default') { %>, - changeDetection: ChangeDetectionStrategy.<%= changeDetection %><% } %> + encapsulation: ViewEncapsulation.<%= viewEncapsulation %>,<% } if (changeDetection !== 'Default') { %> + changeDetection: ChangeDetectionStrategy.<%= changeDetection %>,<% } %> }) export class <%= classify(name) %>Component { todo = [