martinsonesson.se JsDOC

PageUrlService

new PageUrlService($location)

Service used for reading page URL
Parameters:
Name Type Description
$location $location See https://code.angularjs.org/1.2.26/docs/api/ng/service/$location
Source:

Methods

getCurrentMainPage() → {String}

Gets the current MAIN page category like MISC or PROFILE.
Source:
Returns:
The current pages main category name
Type
String

getPageName() → {obj}

Gets the name of the current page
Source:
Returns:
The current pages name
Type
obj

getParameterValueByKey(parameterName) → {String}

Gets the GET-parameter value by key by reading the URL
Parameters:
Name Type Description
parameterName String The key of parameter
Source:
Returns:
The value of the given parameter key
Type
String