I have the following in my controller;
$scope.location = $location.absUrl();
This gives me the full URL of the current page being viewed. In my HTML I would like to apply a class if the URL contains a certain parameter.
ng-class="{'location': location == }
I'm not really sure what to put after the : to evaluate the expression. a url may include a string such as 'requestId=555'
How can I write an expression so that if a URL includes that string the class then gets applied?