How to Create a Project with App Module in Angular 17?

By Hardik Savani January 17, 2024 Category : Angular

Hi Artisan,

This article will give you an example of angular 17 create project with app module. We will look at an example of angular 17 create project no standalone. you will learn angular 17 app module missing. In this article, we will implement a angular 17 create project with app.module.ts file. So, let us dive into the details.

A few days ago released Angular 17 version. Standalone is now the new default for the Angular 17 CLI. So when you create a new project with angular 17, you won't have any modules in it if you don't specify anything.

However, it is still possible to create a module-based app by using the "--no-standalone" flag with "ng new --no-standalone" command.

So, if you have question why app module file missing in angular 17 then i will help you to create project with app module file using following command:

Syntax:

ng new {project_name} --no-standalone

Command:

ng new firstApp --no-standalone

You will see app.module.ts file in your project as like the below screenshot:

I hope it can help you...

Shares