docs(router): fix import and replace RouteConfig (#8433)
This commit is contained in:
parent
55921be1af
commit
c6f2b3e96b
|
@ -22,10 +22,10 @@ import {RouterLink} from './src/directives/router_link';
|
|||
*
|
||||
* ```
|
||||
* import {Component} from '@angular/core';
|
||||
* import {ROUTER_DIRECTIVES, Routes} from '@angular/router-deprecated';
|
||||
* import {ROUTER_DIRECTIVES, Routes} from '@angular/router';
|
||||
*
|
||||
* @Component({directives: [ROUTER_DIRECTIVES]})
|
||||
* @RouteConfig([
|
||||
* @Routes([
|
||||
* {...},
|
||||
* ])
|
||||
* class AppCmp {
|
||||
|
|
Loading…
Reference in New Issue