Based on this URL, when it hits my angular controller, I need to get a value of wonum, which is "BRK18482020".
http://localhost/RealSuiteApps/RealHelp/-1/Detail?wonum=BRK18482020#/
Is it possible? cant understand how...
documented $location service must work, but it doesnt work :(
constructor(private $location: ng.ILocationService) {
var wonum = $location.search().wonum; // DOESNT WORK, wonum undefined
var wonum2 = $location.search()['wonum']; // DOESNT WORK, wonum undefined
doesnt work
UPDATE
Obviously angularJS $location doesn't work.
So, using the standard way to get the param works fine.
var wonum = window.location.search.split("wonum=")[1];

$location.search()? Does that have any data?