Run the Development Server
ng serve
Then open your browser and go to:http://localhost:4200
Explore the Project Structure
-
src/app/app.component.ts– The root component logic. -
src/app/app.component.html– The root component template (HTML). -
src/app/app.module.ts– Main module that ties everything together.
Create a New Component
ng generate component my-component
or shorthand:
ng g c my-component
Build for Production
ng build
This will output the production files to the dist/ folder.
1
-min_2_11zon.png)