Provides tools for dynamically interacting with the head element.
core/src/head/head.service.ts
Methods |
|
constructor(document: DocumentRef)
|
||||||
Parameters:
|
||||||
Public addElement | ||||||||||||
addElement(name: string, config?: ElementConfigurator
|
||||||||||||
Type parameters:
|
||||||||||||
Creates an element of the given name, configures it and adds it to the element. configurator's properties. If a function was specified, the function is run on the element without any other intervention.
Parameters:
Returns:
ElementRef<TElement>
A reference to the new element which has already been added to the element. |
||||||||||||
Public addLinkElement | ||||||||||||
addLinkElement(rel: LinkRel | LinkRel[], config?: LinkConfigurator)
|
||||||||||||
Creates a element, configures it and adds it to the element. configurator's properties. If a function was specified, the function is run on the element without any other intervention.
Parameters:
Returns:
ElementRef<HTMLLinkElement>
A reference to the new element which has already been added to the element. |
||||||||||||
Public addScriptElement |
addScriptElement(type: string, src: string, config?: ScriptConfigurator)
|
Creates a |