1.0.1 • Published 7 years ago

@angularclass/bootloader v1.0.1

Weekly downloads
340
License
Apache-2.0
Repository
github
Last release
7 years ago

Angular 2 Bootloader

Angular 2 Bootloader for async script tag and hmr support

Install

npm install @angularclass/bootloader --save

main.module.ts

import { bootloader } from '@angularclass/bootloader';

@NgModule({
  // ...
})
export class MainModule {}

export const platformRef = platformBrowserDynamic();

export function main() {
  return platformRef.bootstrapModule(MainModule);
}

bootloader(main); // this will bootstrap your

index.html

<script async src="app.bundle.js"></script>

enjoy — AngularClass

AngularClass ##AngularClass

Learn AngularJS, Angular 2, and Modern Web Development from the best. Looking for corporate Angular training, want to host us, or Angular consulting? patrick@angularclass.com