Installation Flashcards
How to find out the CLI version?
ng –version
What is Bazel?
Bazel is a tool that automates software builds and tests.
Bazel is similar to other tools like Make, Ant, Gradle, Buck, Pants, and Maven.
Angular uses Bazel as a built tool. (since Angular 8)
What is the default port for Angular apps?
4200
How to run the angular app in another port?
ng serve –port= portNumber
Example: ng serve –port=5000
What are the default testing frameworks in Angular?
Unit test: Jasmine
Test Runner and execution: Karma
End to End test: Protractor
What does the file package.json include?
It includes the project name, the dependencies, the libraries being used, and their corresponding versions. Also includes the typescript version.
What command is used to run tests?
Unit test: ng test
End-to-end tests: ng e2e
How to upgrade Angular apps?
ng update @angular/cli @angular/core
What is transpiling?
It is the conversion from typescript code to javascript code.
What command can be used to find issues in the code>
ng lint
How to get the window height and width in the component class?
Use the object called: Window
height = window. height;
width = window. width;