Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 995 Bytes

File metadata and controls

21 lines (12 loc) · 995 Bytes

Angular Component Lifecycle Hook

This project was generated with Angular CLI version 1.6.5.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Read this Article for steps to do this code yourself:

Read: Angular Project with Lifecycle Hooks - Click Here 👆

To Read on Medium:

Click Here 👆