mechanisms Flashcards

1
Q

An expression

A

A single line of code that evaluates to a value. The value may be an arithmetic operation, a logical comparison or a call to a method over an object

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

Whe we use interpolation throught the expression:”{{name}}”

A

Angular searches for the required values for the evaluation, perform the evaluation and then replaces the expression with the result in the rendering process

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

Property binding

A

Angular capability to keep the same value in a field of the memory and an element inner the DOM; to chage both values when one of the two changes.

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

Property binding from class field to an DOM element property:

A

img [tag_property_name]=”ts_class_field”

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

Event binding (rending) from a class method to an event in the DOM:

A

input (event_name)=”callTheMethodOrFunction($event)” // in the DOM

callTheMethodOrFunction(e:SomeEvent){ // event implementation } //inside our component

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

Type Assertion Example

A

this.imgURL = ( e.target as HTMLInputElement).value

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