TypeScript @angular-core.RendererV2类(方法)实例源码

下面列出了TypeScript @angular-core.RendererV2 类(方法)源码代码实例,从而了解它的用法。

作者:rlugoj    项目:angula   
private listen(r: RendererV2, el: any, elName: string, eventName: string, unlistenId: number) {
    const listener = (event: any) => {
      return this._eventDispatcher.dispatchRenderEvent(el, elName, eventName, event);
    };

    const unlisten = r.listen(el || elName, eventName, listener);
    this._renderStore.store(unlisten, unlistenId);
  }

作者:rlugoj    项目:angula   
private setProperty(r: RendererV2, el: any, name: string, value: any) {
   r.setProperty(el, name, value);
 }

作者:rlugoj    项目:angula   
private setStyle(
     r: RendererV2, el: any, style: string, value: any, hasVendorPrefix: boolean,
     hasImportant: boolean) {
   r.setStyle(el, style, value, hasVendorPrefix, hasImportant);
 }

作者:rlugoj    项目:angula   
private removeStyle(r: RendererV2, el: any, style: string, hasVendorPrefix: boolean) {
   r.removeStyle(el, style, hasVendorPrefix);
 }

作者:rlugoj    项目:angula   
private setAttribute(r: RendererV2, el: any, name: string, value: string, namespace: string) {
   r.setAttribute(el, name, value, namespace);
 }

作者:rlugoj    项目:angula   
private removeAttribute(r: RendererV2, el: any, name: string, namespace: string) {
   r.removeAttribute(el, name, namespace);
 }

作者:rlugoj    项目:angula   
private parentNode(r: RendererV2, node: any, id: number) {
   this._renderStore.store(r.parentNode(node), id);
 }

作者:rlugoj    项目:angula   
private nextSibling(r: RendererV2, node: any, id: number) {
   this._renderStore.store(r.nextSibling(node), id);
 }

作者:rlugoj    项目:angula   
private selectRootElement(r: RendererV2, selector: string, id: number) {
   this._renderStore.store(r.selectRootElement(selector), id);
 }

作者:rlugoj    项目:angula   
private insertBefore(r: RendererV2, parent: any, child: any, ref: any) {
   r.insertBefore(parent, child, ref);
 }


问题


面经


文章

微信
公众号

扫码关注公众号