Category Angular 5
ng generate module modulename
for pre component
short code
Then install the Angular CLI globally.
Step 2. Create a new project
Open a terminal window.
Generate a new project and default app by running the following command:
The Angular CLI installs the necessary npm packages, creates the project files, and populates the project with a simple default app. This can take some time.
Step 3: Serve the application
Go to the project directory and launch the server.