|
1 | | -# Angular 2 Interview Questions... And Answers! |
| 1 | +# 90+ Angular 2+ Interview Questions And Answers |
2 | 2 |
|
3 | 3 | This is a collection of Angular 2 interview questions I've found online, along with (hopefully) correct answers for most of them. Feel free to contribute / send corrections.
|
4 | 4 |
|
5 | | -Note: "PA" === Possible Answer (one of many valid ones), and "A" === Answer. |
| 5 | +Note: "PA" = Possible Answer (one of many valid ones), and "A" = Answer (when there's clearly just one right answer). |
6 | 6 |
|
7 | 7 | ## Template Syntax Questions
|
8 | 8 |
|
@@ -212,6 +212,10 @@ A: When its related route is first requested.
|
212 | 212 |
|
213 | 213 | A: You would implement CanActivate or CanDeactivate and specify that guard class in the route path you’re guarding.
|
214 | 214 |
|
| 215 | +**What are some different types of RouteGuards?** |
| 216 | + |
| 217 | +A: CanActivate, CanDeactivate, CanLoad, Resolve, etc. |
| 218 | + |
215 | 219 | **How would you intercept 404 errors in Angular 2?**
|
216 | 220 |
|
217 | 221 | A: Can provide a final wildcard path like so: { path: ‘**’, component: PageNotFoundComponent }
|
|
0 commit comments