Router Example in Angular2
 
 Hi All,   In this blog I am going to show you how you can implement the Routing in Angular2 application.   To Starts with this we need to create following files in your application:   1. home.component.ts (under home folder)  2. login.component.ts (under login folder)  3. app.component.ts  4. main.ts  5. index.html    create a folder with name home and then create a file with name  home.component.ts  with below contents:   ====================================================================  home.component.ts  ====================================================================   import {Component} from 'angular2/core'; @Component({   selector: 'home',   template: `       <h1>My Home Page</h1>   ` }) export class Home {   constructor() {   } }   create a folder with name login and then create a file with name  login.component.ts  with below contents:   ====================================================================...
