Constructor
new module:br/services/html/BRHtmlResourceService(url)
Parameters:
Name | Type | Description |
---|---|---|
url |
String | A URL to load HTML from. |
- Implements:
Methods
-
getHTMLTemplate(templateId) → {HTMLElement}
-
Access an HTML template by name.
Parameters:
Name Type Description templateId
String The identifier of the template that is required. Note that templates should be contained within a template tag (preferably). Returns:
- Type
- HTMLElement
-
(inner) getTemplate()
-
Gets the template by removing the template tag if needed.