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
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ A: A variable (defined using a #) in a component template, which can be referenc
22
22
23
23
**What are the possible ways to bind component properties to an associated template?**
24
24
25
-
A: interpolation binding, one way binding, two way binding.
25
+
A: Interpolation binding, one way binding, two way binding.
26
26
27
27
## Component/Directive Questions
28
28
@@ -63,43 +63,43 @@ A: By specifying the moduleId to be module.id in the Component decorator. (Note:
63
63
64
64
**What is the purpose of NgModule?**
65
65
66
-
A: to give Angular information on a particular module’s contents, through decorator properties like: declarations, imports, exports, providers, etc.
66
+
A: It's to give Angular information on a particular module’s contents, through decorator properties like: declarations, imports, exports, providers, etc.
67
67
68
68
**How do you decide to create a new NgModule?**
69
69
70
70
A: Typically for a nontrivial feature in an application, that will involve a collection of related components and services.
71
71
72
72
**What are the attributes that you can define in an NgModule annotation?**
**How would you select a css class in any ancestor of the component host element, all the way up to the document root?**
229
229
230
-
A: using the :host-context() pseudo-class selector.
230
+
A: Using the :host-context() pseudo-class selector.
231
231
232
232
**What selector force a style down through the child component tree into all the child component views?**
233
233
234
-
A: use the /deep/ selector along with :host pseudo-class selector.
234
+
A: Use the /deep/ selector along with :host pseudo-class selector.
235
235
236
236
**What does :host-context() pseudo-class selector target?**
237
237
@@ -269,22 +269,22 @@ A: pass in Validator objects along with the FormControl objects...
269
269
270
270
**What's the difference between dirty, touched, and pristine on a form element?**
271
271
272
-
A: dirty means it contains user data, touched means the user has at least done something with a particular control (perhaps just literally ‘touched’ it by giving it focus?), and pristine means the control has not been touched at all by the user.
272
+
A: Dirty means it contains user data, touched means the user has at least done something with a particular control (perhaps just literally ‘touched’ it by giving it focus?), and pristine means the control has not been touched at all by the user.
273
273
274
274
**How can you access validation errors in the template to display error messages?**
275
275
276
-
PA: use formErrors
276
+
PA: Use formErrors
277
277
278
278
**What is async validation and how is it done?**
279
279
280
-
A: verifying some field using some asynchronous call (perhaps a server call)... return a `Promise<ValidationResult>` from your validator. When creating a FormControl object, you can pass an asynchronous validator into the constructor (e.g. `new FormControl(‘value’, syncValidator, asyncValidator)`).
280
+
A: Verifying some field using some asynchronous call (perhaps a server call)... return a `Promise<ValidationResult>` from your validator. When creating a FormControl object, you can pass an asynchronous validator into the constructor (e.g. `new FormControl(‘value’, syncValidator, asyncValidator)`).
281
281
282
282
283
283
## Architecture Questions:
284
284
285
285
**What is a good use case for ngrx/store?**
286
286
287
-
A: complex application state management requirements, involving asynchronous requests to update state...
287
+
A: Complex application state management requirements, involving asynchronous requests to update state.
288
288
289
289
**What would be a good use case for having your own routing module?**
0 commit comments