11declare var Prism :any ;
22
33import { Component , ViewEncapsulation , AfterViewChecked } from '@angular/core' ;
4- import { Router , RouteConfig , ROUTER_DIRECTIVES } from '@angular/router-deprecated ' ;
4+ import { Router , Routes , ROUTER_DIRECTIVES } from '@angular/router' ;
55
66import { About } from './components/about/about' ;
77import { Features } from './components/features/features' ;
@@ -17,13 +17,13 @@ import {Contact} from './components/contact/contact';
1717 encapsulation : ViewEncapsulation . None
1818} )
1919
20- @RouteConfig ( [
21- { path : '/about' , component : About , name : 'About' , useAsDefault : true } ,
22- { path : '/features' , component : Features , name : 'Features' } ,
23- { path : '/debugging' , component : Debugging , name : 'Debugging' } ,
24- { path : '/download' , component : Download , name : 'Download' } ,
25- { path : '/contact' , component : Contact , name : 'Contact' } /* ,
26- {path: '/** ', redirectTo: [' About']}*/
20+ @Routes ( [
21+ { path : '/about' , component : About } ,
22+ { path : '/features' , component : Features } ,
23+ { path : '/debugging' , component : Debugging } ,
24+ { path : '/download' , component : Download } ,
25+ { path : '/contact' , component : Contact } ,
26+ { path : '' , component : About }
2727] )
2828
2929export class SimpleJavaMailApp implements AfterViewChecked {
0 commit comments