No angular moduel is being created when using command ng new

24 Views Asked by At

I am using the command ng new <project-name> to create a new angular project. When the project is created, though it runs properly, there is no angular module present in the project.

The ng new command is generating a project only with StandAlone components.

I am using angular 17

1

There are 1 best solutions below

0
Ankit Kumar Maurya On

There is a change in angular 17.

Now, the ng new command creates StandAlone components by default. This is what said by angular website.

Please note: Starting in Angular version 17 new projects will be standalone by default. To create a project with NgModule use the option ng new --no-standalone

Proper documentation about the standalone architecture pattern could be found here.