You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,4 +13,20 @@ PA: Using the transition and animate function in an animations block like so: `a
13
13
**How do you define a wildcare state?**
14
14
A: Using the asterisk - example: `transition('* => active'), animate('100ms ease-in'))`
15
15
16
+
## Template Syntax Questions
17
+
**What is a template reference variable, and how would you use it?**
18
+
A: A variable (defined using a #) in a component template, which can be referenced in other parts of the template. For example, a template variable for a form can then be referenced by other elements of the form.
19
+
20
+
**What are the possible ways to bind component properties to an associated template?**
21
+
A: interpolation binding, one way binding, two way binding.
22
+
23
+
## Component/Directive Questions
24
+
**What is the minimum definition of a component?**
25
+
A: A class with a Component decorator specifying a template.
26
+
27
+
**What is the difference between a component and a template?**
28
+
A: A component is a directive with a template (representing a view).
29
+
30
+
**What are different kinds of directives supported in Angular 2?**
31
+
A: Structural, directive, component, and attribute directives.
0 commit comments