if you want to do something like foo/bar, with bar a substate of foo, use
dots.
.state('foo' ...)
.state('foo.bar ...)
then ui-sref="foo.bar"
more on ui-router here:
https://egghead.io/lessons/angularjs-introduction-ui-router
e
On Sat, Jul 5, 2014 at 10:25 AM, pratik lodha <[email protected]>
wrote:
> i want to send two states in ui-sref,
>
> *ui-sref="something1/something2" *
>
> in my current state which is :
>
> .state('competitions',{
> url : '/competitions',
> parent : 'Events',
> templateUrl : 'views/genres/competitions.html',
> controller : 'Home'
> })
> so i defined a state like this
> .state('intocompetitions',{
> url : '/:genre',
> parent : 'competitions',
> templateUrl : 'views/competitions/dance.html',
> controller : 'Home'
> })
>
> it shows cannot resolve *something1/something2 in the state competitions*
>
> --
> 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 http://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>
--
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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.