jhades / angular2-library-example

An example repository for building your own Angular 2 library
84 stars 41 forks source link

Learn how to create an Angular 2 Library

An example repository for learning how to build your own Angular 2 library. Learn how to:

See further details in this blog post: How to create an Angular 2 component library, and how to consume it using SystemJs or Webpack

Installation

Clone the repository and do:

npm install

Building the library

npm run build

Install the SystemJs Example

cd examples/systemjs
npm install
npm run build
npm start

Then access http://localhost:8080

Install the Webpack Example

cd examples/webpack
npm install
npm start

Then access http://localhost:8080