ogapi-es6
v0.1.21
Published
ES6 API package for Blueline apps
Downloads
19
Readme
#ogAPI: ES6 Edition
This will be the most maintained of the ogAPI variants going forward. ogAPIBL2 will be deprecated once all in-production apps are moved to ES6.
##Publishing New Versions
Steps:
- Once you're ready to publish
webpack
it. The config is currently setup for inline source map and no uglification since ES6 ogAPI is still a bit of an alpha product. - Update the
package.json
to the appropriate rev level. npm publish
##Using in an Ourglass ES6 App
In the source folder, add an npm dependency:
npm install -D ogapi-s6
In the main module for the app, add:
import ourglassAPI from 'ogapi-es6';
And where you define the main module be sure to inject ourglassAPI
:
const ngModule = angular.module( 'ngApp', [ ourglassAPI, ngAnimate, ngTouch, uirouter, uiOGMobile ] );
And that's about it. Be sure to npm update
when a new version of this lib is published.
##Adding New Features
Directives, components and services are added in the ogapi.module.js
file. It should be pretty self explanatory.