but foo/bar is variable for me ...and i want to store them

url:":/genre/:event"


On Sat, Jul 5, 2014 at 11:06 PM, Eric Eslinger <[email protected]>
wrote:

> 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 a topic in the
> Google Groups "AngularJS" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/angular/kmytCtI98uE/unsubscribe.
> To unsubscribe from this group and all its topics, 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.

Reply via email to