angular cli is generating a standalone component when it is generating with module #26700
Closed
1 task done
Labels
area: @schematics/angular
freq1: low
Only reported by a handful of users who observe it rarely
severity5: regression
type: bug/fix
Command
generate
Is this a regression?
The previous version in which this bug was not present was
16.x
Description
while generating a lazy loading module from command line tool, the generated component is marked as standalone by default, while there is no option to flag this component to be generated as a normal component.
Minimal Reproduction
below command generates a standalone component when generating a module
output as
I have to modify the angular.json -> schematics -> @schematics/angular:component -> standalone to false to make is possible, but that impact the global component generation.
since the standalone component generation is default now, but we have a choice when we a generating the component only with a flag
--standalone
or--no-standalone
.i am considering this a bug as i seems that this use case was not thought through when angular team decided to make the standalone components as the default for the component generation.
Exception or Error
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: