Important
In this project, I’m utilizing Angular 18.
Create New Project
- Use
ng new project-name --standalone=false
(Here NgLab kind of project-name. AppModule will not be visible if standalone=true)
Do you want to enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering)? No
Hint
Using
standalone=false
in Angular keeps the traditional NgModules structure, which is compatible with older projects and third-party libraries. It provides a modular way to organize components, support lazy loading, and offer better control over configuration. This is helpful for larger applications where modules enhance maintainability.
- Then use
cd project-name
andcode .
- Finally use
ng serve --o
for run (—o for browser open. Give permission for first timeset-ExecutionPolicy RemoteSigned -Scope CurrentUser
)