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 9a3b3ad commit 5cdd5e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/schematics/angular/application/index.ts
Expand Up @@ -128,7 +128,7 @@ function addAppToWorkspaceFile(options: ApplicationOptions, workspace: Workspace
(schematics['@schematics/angular:component'] as JsonObject).inlineStyle = true;
}
if (options.style && options.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 5cdd5e1

Please sign in to comment.