I am trying to capture a route to be something like
www.mysite.com/#name=ted&location=ca
I am using stateprovider
and I setup as follow:
$stateProvider
.state('home', {
url: '/#name',
controller: function () {
alert('here')
do stuff...
}
})
but for some reason, alert never trigger.
Can someone help me about it? Thanks a lot!
To get params via query string you can use try:
#
will be there if HTML5 mode is disabled.