GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing next.angular.dev — Renderer2 • Angular Use to store arbitrary developer-defined data on a renderer instance, as an object containing key-value pairs. This is useful for renderers that delegate to other renderers. Implement this callback to destroy the renderer or the host element. @returns voidImplement this callback to create an instance of the host element. @paramname stringAn identifying name for the new element, unique within the namespace. @paramnamespace string | null | undefinedThe namespace for the new element. @returns anyThe new element. Implement this callback to add a comment to the DOM of the host element. @paramvalue stringThe comment text. @returns anyThe modified element. Implement this callback to add text to the DOM of the host element. @paramvalue stringThe text string. @returns anyThe modified element. If null or undefined, the view engine won't call it. This is used as a performance optimization for production mode. Appends a child to a given parent node in the host element DOM. @paramparent anyThe parent node. @paramnewChild anyThe new child node. @returns voidImplement this callback to insert a child node at a given position in a parent node in the host element DOM. @paramparent anyThe parent node. @paramnewChild anyThe new child nodes. @paramrefChild anyThe existing child node before which @paramisMove boolean | undefinedOptional argument which signifies if the current @returns voidImplement this callback to remove a child node from the host element's DOM. @paramparent anyThe parent node. @paramoldChild anyThe child node to remove. @paramisHostElement boolean | undefinedOptionally signal to the renderer whether this element is a host element @paramrequireSynchronousElementRemoval boolean | undefinedOptionally signal to the renderer whether this element needs synchronous removal @returns voidImplement this callback to prepare an element to be bootstrapped as a root element, and return the element instance. @paramselectorOrNode anyThe DOM element. @parampreserveContent boolean | undefinedWhether the contents of the root element
should be preserved, or cleared upon bootstrap (default behavior).
Use with @returns anyThe root element. Implement this callback to get the parent of a given node in the host element's DOM. @paramnode anyThe child node to query. @returns anyThe parent node, or null if there is no parent. This is because the check is synchronous, and the caller can't rely on checking for null. Implement this callback to get the next sibling node of a given node in the host element's DOM. @paramnode any@returns anyThe sibling node, or null if there is no sibling. This is because the check is synchronous, and the caller can't rely on checking for null. Implement this callback to set an attribute value for an element in the DOM. @paramel anyThe element. @paramname stringThe attribute name. @paramvalue stringThe new value. @paramnamespace string | null | undefinedThe namespace. @returns voidImplement this callback to remove an attribute from an element in the DOM. @paramel anyThe element. @paramname stringThe attribute name. @paramnamespace string | null | undefinedThe namespace. @returns voidImplement this callback to add a class to an element in the DOM. @paramel anyThe element. @paramname stringThe class name. @returns voidImplement this callback to remove a class from an element in the DOM. @paramel anyThe element. @paramname stringThe class name. @returns voidImplement this callback to set a CSS style for an element in the DOM. @paramel anyThe element. @paramstyle stringThe name of the style. @paramvalue anyThe new value. @returns voidImplement this callback to remove the value from a CSS style for an element in the DOM. @paramel anyThe element. @paramstyle stringThe name of the style. @returns voidImplement this callback to set the value of a property of an element in the DOM. @paramel anyThe element. @paramname stringThe property name. @paramvalue anyThe new value. @returns voidImplement this callback to set the value of a node in the host element. @paramnode anyThe node. @paramvalue stringThe new value. @returns voidImplement this callback to start an event listener. @paramtarget anyThe context in which to listen for events. Can be the entire window or document, the body of the document, or a specific DOM element. @parameventName stringThe event to listen for. @paramcallback (event: any) => boolean | voidA handler function to invoke when the event occurs. @returns () => voidAn "unlisten" function for disposing of this handler. DescriptionExtend this base class to implement custom rendering. By default, Angular renders a template into DOM. You can use custom rendering to intercept rendering calls, or to render to something other than DOM.
Please be aware that usage of `Renderer2`, in context of accessing DOM elements, provides no
extra security which makes it equivalent to
Create your custom renderer using Use a custom renderer to bypass Angular's templating and
make custom UI changes that can't be expressed declaratively.
For example if you need to set a property or an attribute whose name is
not statically known, use the |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |