@RouteConfig seems to have disappeared from angular2 2.0.0-rc.1, @RouteConfig is in the @angular/router-deprecated package, idem on the api documented on the site,
So what is the proper way to defines routes now?
@RouteConfig seems to have disappeared from angular2 2.0.0-rc.1, @RouteConfig is in the @angular/router-deprecated package, idem on the api documented on the site,
So what is the proper way to defines routes now?
Check the changlog on github: https://github.com/angular/angular/blob/master/CHANGELOG.md
The router you're using is deprecated and now referred to as router-deprecated
package that need to be installed separately for backward compatibility. Instead of RouteConfig
use the new Routes
imported from '@angular/router' (aka new router).
It's still missing a few features, such as route name and data, but they might add those in future.