bootloader
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Angular 2 Fundamentals


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 function main() {
  return platformBrowserDynamic().bootstrapModule(MainModule);
}
 
bootloader(main); // this will bootstrap your

index.html

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

If you have a vendor file you can delete it and include async tag in your one app bundle

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

Package Sidebar

Install

npm i bootloader

Weekly Downloads

8

Version

1.0.1

License

Apache-2.0

Last publish

Collaborators

  • gdi2290
  • george55