TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Komal Sharma
NA
103
19.3k
Error in routing in angular ver. 2+ ?
Jul 6 2018 1:15 AM
I was creating a routing, without children it was working fine, but when i added children then it generates an error, please look into code :
{path:
''
, redirectTo:
'/students'
, pathMatch:
'full'
},
{
path:
'students'
,
component:StudentsComponent,
children:[
{path:
''
,component:StudentStartComponent},
{path:
':id'
,component:StudentDetailComponent},
{path:
':id/edit'
,component:StudentEditComponent}
{path:
'new'
,component:StudentEditComponent},
]
},
{path:
'subjects-list'
, component:SubjectsListComponent},
But in the above code, i have an issue "cannot read property studentId".
Reply
Answers (
4
)
ERROR Error: If ngModel is used within a form tag,
Exporting High Charts into word file