* Write `cssText` to `RElement`. * * This function does direct write without any reconciliation. Used for writing initial values, so * that static styling values do not pull in the style parser. * * @param renderer Renderer to use * @param element The element which needs to be updated. * @par
(renderer: Renderer, element: RElement, newValue: string)
| 113 | * @param newValue The new class list to write. |
| 114 | */ |
| 115 | function writeDirectStyle(renderer: Renderer, element: RElement, newValue: string) { |
| 116 | ngDevMode && assertString(newValue, "'newValue' should be a string"); |
| 117 | renderer.setAttribute(element, 'style', newValue); |
| 118 | } |
| 119 | |
| 120 | /** |
| 121 | * Write `className` to `RElement`. |
no test coverage detected
searching dependent graphs…