diff --git a/packages/schematics/edit/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html b/packages/schematics/edit/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html index 949d09634..f8affe2a1 100644 --- a/packages/schematics/edit/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +++ b/packages/schematics/edit/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html @@ -5,15 +5,15 @@ <% } else { %> - - + + <% } %> diff --git a/packages/schematics/edit/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts b/packages/schematics/edit/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts index 4f8d6833b..3217a50a2 100644 --- a/packages/schematics/edit/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +++ b/packages/schematics/edit/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts @@ -46,8 +46,8 @@ export class <%= componentName %> implements OnInit { constructor(<% if(modal) { %> private modal: NzModalRef,<% } else { %> private route: ActivatedRoute, + public location: Location,<% } %> private msgSrv: NzMessageService, - public _location: Location,<% } %> public http: _HttpClient, ) {}