Configuration Flashcards

1
Q

how to check your angular version?

A

ng version

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

how to create a new angular project?

A

ng new [name of app]

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

how do you run your angular app?

A

ng serve

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

package.json is similar to what in Springboot?

A

the pom.xml

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

what does ts.config do?

A

it lets the browser read typescript

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

how to create an typescript call in angular?

A

ng g class name of class

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

the typescricpt class properties should match what in springboot?

A

the jpa model/entity

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

how to create an component in angular?

A

ng g c component name

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

what 3 files are created when you create a component in angular?

A

component. html
component.css
component.ts

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

what does app.component do in angular?

A

it holds all the components

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

How do you use a for loop in angular?

A

*NgFor = let employee for employee

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

how to create an angular service?

A

ng g s serviceName

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

what does HttpClientModule do in angular?

A

it allows you to make api calls

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

how to make rest api calls?

A

create an observable method in service that return this.httpclient.get(url)

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

what does app.routing.module does in angular?

A

it handles routing and navigation

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

How to unsubscribe the Observables?

A

On the method: OnNgDestroy add the line: Subscription.unscribe()

17
Q

How to disable the prefix to any component in Angular CLI?

A

ng g component <component_name> --prefix=false</component_name>