Thursday, 1 June 2017

$location.search is not working - angular 1.6.4

This is my URL :

http://localhost:8091/apps/dashboard/#!/#%2Findex%3Fsession=564badc5919b42fa880f1b34ae5d0740

I am getting 'undefined' from the below mentioned code:

 $location.search().session

What is wrong here ? I am new with Angular and wanted to get session variable from the query string.

Thanks in advance !



via Pratap Das

No comments:

Post a Comment