Installation Flashcards

1
Q

How to find out the CLI version?

A

ng –version

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Bazel?

A

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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the default port for Angular apps?

A

4200

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to run the angular app in another port?

A

ng serve –port= portNumber
Example: ng serve –port=5000

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the default testing frameworks in Angular?

A

Unit test: Jasmine
Test Runner and execution: Karma
End to End test: Protractor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the file package.json include?

A

It includes the project name, the dependencies, the libraries being used, and their corresponding versions. Also includes the typescript version.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What command is used to run tests?

A

Unit test: ng test
End-to-end tests: ng e2e

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How to upgrade Angular apps?

A

ng update @angular/cli @angular/core

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is transpiling?

A

It is the conversion from typescript code to javascript code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What command can be used to find issues in the code>

A

ng lint

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How to get the window height and width in the component class?

A

Use the object called: Window
height = window. height;
width = window. width;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly