I have a scenario that I need to get data from URL with angularjs
. For example:
example.com/sampleurl?hk=123
I want to get data of variable hk
which is 123
and use it in my controller. How can I achieve that? So far I tried googled angularjs http get but don't seems to get any reference.