1.0.8 • Published 8 years ago
angular2-library-example1 v1.0.8
Learn how to create an Angular 2 Library
An example repository for learning how to build your own Angular 2 library. Learn how to:
- setup the library public API
- build the library
- version it
- publish it to npm
- package the CSS
- consume the library with SystemJs or Webpack
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 installBuilding the library
npm run buildInstall the SystemJs Example
cd examples/systemjs
npm install
npm run build
npm startThen access http://localhost:8080
Install the Webpack Example
cd examples/webpack
npm install
npm startThen access http://localhost:8080