Create custom element in angular 6

Reading Time: 2 minutesCreate Angular Project ng new –prefix custom –style=scss –skip-tests Use schematics to add angular element support ng add @angular/elements Use angular-cli to generate new component and specify encapsulation is ViewEncapsulation.Native REmove the document-create-element polyfill from script array. Install custom-lements polyfill, “@webcomponents/custom-elements” yarn add @webcomponents/custom-elements Update polyfills.ts to include native-shim polyfill // Shim for … Read more