ng-core
This project contains AngularJs 1.5.x Decorators that enables you to build your AngularJs application with ES2015+ features.
The decorators have been designed to mirror Angular2+, therefore makes it compatible and easly migrated to Angular2.
API
The following project exposes the following APIs for usage
- bootstrap
- NgModule
- Directive
- Component
- Injectable (services)
- Pipe (Filters)
Usage:
bootstrap : This method is used to dynamically bootstrap AngularJs app. It is a wrapper of angular.bootstrap method
syntax:
NgModule: This method is a wrapper to angular.module(), it enables you to defined modules, this method can be used alongside bootstrap method.
syntax:
@;
example
; @ {}
NgModule takes the following properties as config
- modules
- components
- directives
- providers aka services
- pipes aka filters
;;;;;; @ {}
Component: this is a wrapper of angular.component()
method, the confuration object is the same as angular.component
with exclusion of controller and introduction of selector property.
syntax
@
@ {}
Directive: this is wrapper of the angular.directive()
syntax
@
@ { }
Pipe: this a wrapper of angular.filter()
method
syntax
@
@ {}`
Testing
Tests for this package has been written using mocha, benv and chai. To run the test,
$ npm test
Notice, this package was written for learning perposes only and has not been tested for perfomance and therefore should be further evaluated before being used for heavy production builds.