select and calling a ui-router state

40 views
Skip to first unread message

Ronneil Camara

unread,
Apr 24, 2014, 1:56:42 PM4/24/14
to ang...@googlegroups.com
Hey guys,

How do we call a state in a select dropdown when we click on an item? I'm not sure if it's going to be ui-sref or $state.go. An example would be awesome!

Thanks!

Ronneil Camara

unread,
Apr 24, 2014, 9:02:18 PM4/24/14
to ang...@googlegroups.com
I got it fixed. LOL! I injected the $state to the function rather than the controller. I used ng-change to call a function that calls $state.go to the state main.graph.display :)
Reply all
Reply to author
Forward
0 new messages