This component can render the mhs:dataClass headerBlock when combined with any of the following mhs:displayClasses self-hero, self-hero-title-top, history-happens-here-header, or homepage-hero.
Dependencies:
| Name | Type | Description |
|---|---|---|
| $location | AngularJS wrapper for window.location |
|
| $document | AngularJS wrapper for document |
Methods
-
getURLPath (href)
-
Hide the homepage-hero if the button's link points to the current page. WILL NOT WORK OUTSIDE OF BROWSER. (source: https://stackoverflow.com/a/13405933)
Parameters:
Name Type Description href link provided from the API
-
onInit
-
Initiated when component is created. Runs code necessary for block configuration.