Class: HelperService

Services.HelperService

new HelperService()

Source:

Methods

(static) self.navigateTo(url)

Navigate to a given URL
Parameters:
Name Type Description
url string The URL to navigate the browser to
Source:

(static) self.queryString()

Get the query string from the location search
Source:
Returns:
The query string

(static) self.scrollTo(anchor)

Scrolls to an anchor
Parameters:
Name Type Description
anchor string The anchor element's ID
Source:

(static) self.slugify(s)

Takes a string and creates a string in slug format for URLs
Parameters:
Name Type Description
s string The string
Source:
Returns:
A slugified string

(static) self.toDate(str)

Creates a formatted date string
Parameters:
Name Type Description
str string The date in string format
Source:
Returns:
Today's date formatting as mm/dd/YYYY

(static) self.today()

Creates a formatted date string
Source:
Returns:
Today's date formatting as YYYY/mm/dd