bootloader
Angular 2 Bootloader for async script tag and hmr support via @AngularClass
Last updated 3 years ago by gdi2290 .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install bootloader 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.1                                ...           latest (3 years ago)

3 Versions

  • 1.0.1                                ...           3 years ago
  • 0.0.2                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (11)
Dependents (2)

Copyright 2014 - 2017 © taobao.org |