Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ERRORError: Uncaught (in promise): Error: Cannot match any routes. URL
- Segment: 'Demo/ng2'
- Error: Cannot match any routes. URL Segment: 'Demo/ng2'
- at Anonymous function
- const routes: Routes = [
- {
- path: '',
- component: CatalogsComponent,
- pathMatch: 'full'
- }
- ];
- export const appRoutingProviders: any[] = [];
- // - Updated Export
- export const routing = RouterModule.forRoot(routes);
- constructor(
- public http: Http,
- public dataService: DataService,
- public router: Router
- ) { }
- ngOnInit() {
- this.dataService.getData()
- .subscribe(data => {
- // if (this.router.url == '') {
- // this.catalog = true;
- // }
- this.itemData = data.Category;
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement