Hi Guys,
How to create dynamic route when using ui router,
if we define,
$stateProvider.state('page1', {
url: '/page1/:id',
views:{}
}
It works fine, but if we try to add dynamic id first and then page name
then it gives error,
ERROR:
$stateProvider.state('page1', {
url: '/:id/page1',
views:{}
}
How to resolve this issue, can anyone help me into this?
--
You received this message because you are subscribed to the Google Groups
"AngularJS" 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.