Hi Guys,

I have  2 states like below

.state(*'init.state1'*,
        {
         * url: '/drildown/:dType/',*
          templateUrl: 'table.html',
          controller: 'TableController'
        })
 .state(*'init.state2'*,
        {
         * url: '/drildown/:dType/',*
          templateUrl: 'table.html',
          controller: 'TableController'
        })

*Note :* Both states has same URL

Inside one controller i'm redirecting to state 2 using
*$state.go('init.state2')
*function

it's redirecting to the mentioned state with out any issue but inside
*TableController*i'm printing current state name
*console.log($state.current.name <http://state.current.name>) ->* i'm
expecting the result will be *"init.state2" *but while saw the result get
surprised because it's printing* "init.state1". *I don't know the reason
why it happened like this can some one explain the issue.





Thanks & Regards,
Sasikumar.V

-- 
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