https://github.com/hypercubed/systemjs-plugin-ng
SystemJS ng-annotate plugin
https://github.com/hypercubed/systemjs-plugin-ng
Last synced: over 1 year ago
JSON representation
SystemJS ng-annotate plugin
- Host: GitHub
- URL: https://github.com/hypercubed/systemjs-plugin-ng
- Owner: Hypercubed
- Created: 2015-09-30T07:47:30.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-10-01T04:28:07.000Z (almost 11 years ago)
- Last Synced: 2025-02-04T15:23:29.328Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://github.com/Hypercubed/systemjs-plugin-ng
- Size: 125 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# systemjs-plugin-ng
SystemJS plugin for adding AngularJS dependency injection annotations using [ng-annotate](https://github.com/olov/ng-annotate).
*Note: ng-annotate currently does not work with ES6 modules [[source](https://github.com/olov/ng-annotate#es6-and-typescript-support)]*
## Install
```sh
jspm install ng=github:Hypercubed/systemjs-plugin-ng
```
*Alternativly copy `ng.js` to your app root install ng-annotate.*
## Usage
```js
import {controller} from './controller.js!ng';
```
or apply to all resources in a path by adding a meta configuration to your SystemJS config file:
```
System.config({
// locate the plugin via map configuration
// (or installed as described above)
map: {
text: '/path/to/ng-plugin.js'
},
// use meta configuration to reference which modules
// should use systemjs-plugin-ng
meta: {
'app/*.js': {
loader: 'ng'
}
}
});
```
## License
MIT