1.3.3 • Published 8 years ago

@angularclass/webpack-toolkit v1.3.3

Weekly downloads
107
License
Apache-2.0
Repository
github
Last release
8 years ago

AngularClass Webpack Toolkit

Webpack helpers and tools for Angular 2

Install

npm install @angularclass/webpack-toolkit --save-dev

Install

app/about/about.ts

@Component({
  selector: 'about',
  template: '<h1>About</h1>'
})
export class About {}

export const routes = [
  { path: 'about', component: 'About' }
];

// create index.ts that exports this file

main.browser.ts

import { provideWebpack } from '@angularclass/webpack-toolkit';
bootstrap(App, [

  provideWebpack({
    'About': require('es6-promise!./app/about')
  })

]);

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