OCU Test Day 1 Review Flashcards

1
Q

How would you describe a component?

A

A TypeScript Class responsible for displaying data to the user and collecting input from the user.

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

What do you need to do to make your component recognized by Angular?

A

(nothing, if you’re using CLI - because CLI does this for us - BUT if not:)
Import it into the NgModule and ensure it’s in the declarations array

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

What’s the Angular Style Guide’s guide to naming conventions for components with multiple words?

A

component-name.component.ts
component-name.component.html
component-name.component.css
firstword - secondword . artifact . filetype

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

What is the command in Angular CLI to make your browser open automatically?

A

ng serve –open

or npm start –open

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

Is Angular geared toward Single Page Applications or enhancing traditional applications?

A

SPAs!

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

Will the setup from Angular CLI automatically reload the browser every time changes are made?

A

Yes, each time you save… in theory. Sometimes it has hiccups, but that’s the idea.

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

How do you signify template literals in JavaScript? (or string interpolation)

A

backticks! ` `

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