This project was generated with Angular CLI version 10.1.6.
Run npm install
and ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
The Factory Method Pattern to avoid switch statements in Angular
TypeScript
This project was generated with Angular CLI version 10.1.6.
Run npm install
and ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.