Search Keywords :- [Angular 2 router link directive, Angular 2 router-outlet directive, Angular 2 rout config , Angular 2 Route Params] For live example, go to plnkr http://embed.plnkr.co/vjf9Zz/ The Route Params :- The route parameter is used to map given URL's parameters based on the rout URLs and It is an optional parameters for that route. Syntax :- params : {[key: string]: string} Example, @RouteConfig([ {path: '/employ/:id' , component: employe, name: 'emp' }, ]) Router-outlet directive :- Router-outlet directive is used to render the components for specific location of your applications. Both the template and templateUrl render the components where you use this directive. Syntax :- <router-outlet></router-outlet> Router-link direct...
Angular, React, JavaScript, Java, PHP, SQL, C#, Vue, NodeJs, TypeScript and Interview Questions Answers