OCU Test Day 2 Review Flashcards

1
Q
When you see something like this INSIDE a tag, what does it signify?
#userId
A

Template reference variable - a variable that can be referenced anywhere else in the template (html file)

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

Which modules are required to use forms?

A

FormsModule for Template-Driven

ReactiveFormsModule for Reactive

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

What are the structural directives?
Attribute directives?
What’s the difference?

A

Structural: ngFor, ngIf, ngSwitch - affect STRUCTURE
Attribute: ngClass, ngStyle - affect APPEARANCE

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