Generated app component does not respect style guide #30335
Labels
area: @schematics/angular
freq1: low
Only reported by a handful of users who observe it rarely
severity1: confusing
type: bug/fix
Command
new
Is this a regression?
The previous version in which this bug was not present was
No response
Description
When generating a new project with version 20 of the CLI, the following component class is generated:
This violates the new style guide, which says:
If we add the
protected
modifier though, the generated spec doesn't compile anymore. Indeed, the spec file contains these three tests:but I would argue that
Minimal Reproduction
npx @angular/cli@next new foov20
Exception or Error
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: