How do you build your Angular application using Angular CLI for use on a local or development environment?
Experience Level: Junior
Tags: AngularAngular CLI
Answer
To build an Angular application for a local or development environment, run the following command from the command line:
ng build
By not using the parameter --prod you are telling Angular CLI that it should not do any optimizations. These take some time to process so skipping them will make your workflow faster.
Related Angular CLI job interview questions
What command aliases do you use when using Angular CLI?
AngularAngular CLI JuniorHow do you build your Angular application using Angular CLI for use on production environment?
AngularAngular CLI JuniorUsing Anular CLI, how do you create a new component that will be automatically imported to your feature module that is called feature-module1?
AngularAngular CLI JuniorUsing Anular CLI, how do you create a new component that will be automatically imported to your main app module?
AngularAngular CLI JuniorUsing Anular CLI, how do you create a new feature module that will be automatically imported to your main app module?
AngularAngular CLI Junior