Skip to content

Instantly share code, notes, and snippets.

@sebastienlevert
Created December 3, 2017 18:13
Show Gist options
  • Save sebastienlevert/cf8ebf1a334f3deee95c4fdd2154a7e2 to your computer and use it in GitHub Desktop.
Save sebastienlevert/cf8ebf1a334f3deee95c4fdd2154a7e2 to your computer and use it in GitHub Desktop.
//web components ES5 shim
import './../../../elements/wc-shim.js';
import { registerAsCustomElements } from '@angular/elements';
import { platformBrowser } from '@angular/platform-browser';
import { ListRest, ListRestModule } from './list-rest';
import { ListRestModuleNgFactory } from './list-rest.ngfactory';
registerAsCustomElements(
[ ListRest ],
() => platformBrowser().bootstrapModuleFactory(ListRestModuleNgFactory)
).catch(err => console.log(err));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment