@hapiness/ng-shadow-dom-rendererdeprecated

Factory to use the shadow DOM V1 spec in Angular renderer until it's fix in core

Usage no npm install needed!

<script type="module">
  import hapinessNgShadowDomRenderer from 'https://cdn.skypack.dev/@hapiness/ng-shadow-dom-renderer';
</script>

README

Hapiness

NG-SHADOW-DOM-RENDERER

This module exposes an Angular's factory to use the shadow DOM V1 spec in Angular renderer until it's fix in core.

We support Angular version 6+.

Installation

$ yarn add @hapiness/ng-shadow-dom-renderer

or

$ npm install --save @hapiness/ng-shadow-dom-renderer

Don't miss to install all peer dependencies if not yet done : @angular/core, @angular/platform-browser.

If your in an Angular-CLI application, all dependencies are already installed.

Usage

In your main module add the factory overrideRenderFactory exposed by @hapiness/ng-shadow-dom-renderer.

import { NgModule } from '@angular/core';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

import { overrideRenderFactory } from '@hapiness/ng-shadow-dom-renderer';

@NgModule({
    imports: [
        BrowserAnimationsModule
    ],
    providers: [overrideRenderFactory()]
})
export class AppModule {}

Back to top

Change History

  • v6.3.0 (2018-06-20)
    • Create ShadowDomV1Renderer to fix angular issue #24397.
    • Expose factory overrideRenderFactory to be used inside Angular applications.
    • Version related to others modules of this packages.
    • Documentation.

Back to top

Maintainers

tadaweb
Julien Fauville Antoine Gomez S├ębastien Ritz Nicolas Jessel

Back to top

License

Copyright (c) 2018 Hapiness Licensed under the MIT license.

Back to top