docs(router): fix Router.forRoot -> RouterModule.forRoot (#3172)

This commit is contained in:
Kanstantsin Klimashevich 2017-02-06 01:25:05 +03:00 committed by Jesús Rodríguez
parent 6732babf23
commit eb372a9b39
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ include ../../../_includes/_see-addr-bar
a#example-config
:marked
The `appRoutes` array of *routes* describes how to navigate.
Pass it to the `Router.forRoot` method in the module `imports` to configure the router.
Pass it to the `RouterModule.forRoot` method in the module `imports` to configure the router.
Each `Route` maps a URL `path` to a component.
There are _no leading slashes_ in the _path_.