InterviewSolution
| 1. |
What is Router-link directive in Angular 2? |
|
Answer» The router-link derivatives enable the navigation from any specific view to the other. It works immediately as a USER is performing application tasks. The link can directly arise from browser and navigation is done on the basis of user action like the click of an anchor TAG. The router link directive gives control to the router for anchor tag elements. It also binds a clickable HTML to the route to enable the navigation. The routerlink directive can easily be bound to an array, E.g. <a [routerlink] = "[ '/ heroes']" >Heroes</a> 23. What is the configuration required for caching of static resources like IMAGES, css and js in Angular 2?During Development MODE, caching for static resources can be done through the Design of Tools. If you want to cache on the production stage, you need to CHECK and update the Server-End Settings accordingly. Note: These are basic angular 2 interview questions that are asked for a position as SDE in Angular Development. |
|