I'm getting the following error when configuring a new route:
ERROR Error: Uncaught (in promise): EmptyError: no elements in sequence
EmptyError: no elements in sequence
I think this is a pretty simple task, here's what I did:
in my app-routing.module.ts I import the component and then set the path in
my Routes array:
import { ConcreteorderComponent } from
'./concreteorder/concreteorder.component';
{ path: 'concreteorder', component: ConcreteorderComponent }
(the component is there, I double checked)
and in my app.module.ts I also did an import and set the path in my Routes
array (exactly like above). I also added it to my declarations section. I
made sure to import "import { RouterModule, Routes } from
'@angular/router';" and the component is also being imported as well. In my
Routes array I'm also setting 2 other paths:
{ path: 'home', component: HomeComponent },
{ path: '', component: HomeComponent },
which are being returned as expected.
What am i missing?
Thanks in advance,
Rich
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.