Skip to content

Commit

Permalink
fix(@schematics/angular): add non deprecated style as default
Browse files Browse the repository at this point in the history
When adding default in the application schematics we should use the non deprecated `style` option.
  • Loading branch information
alan-agius4 authored and mgechev committed Jan 22, 2019
1 parent 13bf1c5 commit f6c80be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/schematics/angular/application/index.ts
Expand Up @@ -172,7 +172,7 @@ function addAppToWorkspaceFile(options: ApplicationOptions, workspace: Workspace
(schematics['@schematics/angular:component'] as JsonObject).inlineStyle = true;
}
if (options.style && options.style !== Style.Css) {
(schematics['@schematics/angular:component'] as JsonObject).styleext = options.style;
(schematics['@schematics/angular:component'] as JsonObject).style = options.style;
}
}

Expand Down

0 comments on commit f6c80be

Please sign in to comment.