Code samples used/explained in the blog post :
- https://blog.chinmoymohanty.com/2020/07/26/the-proper-way-to-destroy-angular-components/
- https://www.codeproject.com/Articles/5274863/The-Proper-Way-to-Destroy-Angular-Components
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.
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.