I am currently working on developing a straightforward router-based application in Angular2 using typescript. The version of Angular2 I am using is 2.0.0-rc.4
, and the router version is 3.0.0-beta.1
Here is my Routes configuration-
App.routes.ts
import { provideRouter, RouterConfig } from '@angular/router';
import { PageNotFoundComponent } from './Shared/pageNotFound.component';
import { Page1Component } from './Pages/Page1/page1.component';
import { Page2Component } from './Pages/Page2/page2.component';
const routes: RouterConfig = [
{ path: 'page1', component: Page1Component },
{ path: 'page2', component: Page2Component },
{ path: '**', component: PageNotFoundComponent }
];
export const appRouterProviders = [
provideRouter(routes)
];
Upon running the application with the npm start command, I encountered a warning (not an error). You can view the warning screenshot here.
Could you please guide me on how to resolve this warning?