scrimba
Build Your First Angular app
Angular Routing - Adding a Customers Routing Module and Routes
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Angular Routing - Adding a Customers Routing Module and Routes
AboutCommentsNotes
Angular Routing - Adding a Customers Routing Module and Routes
Expand for more info
src
app
app.component.ts
run
preview
console
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-root',
template: `
<router-outlet></router-outlet>
`
})
export class AppComponent implements OnInit {
constructor() { }

ngOnInit() {

}

}
Console
"Angular is running in the development mode. Call enableProdMode() to enable the production mode."
,
!
"ERROR"
,
Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'customers' (/node_modules/@angular/router/bundles/router.umd.js:1749)
,
/index.html
-5:43