0.1.0 • Published 8 years ago

angular-register v0.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

angular-register

Write angular 1 modules using ES6

You can use this module with AMD, CommonJS or just like a method of window object!

Instalation

npm install angular-register.

Add angular register in your index.html

<script src="node_modules/angular-register/dist/angular-register.min.js"></script>

If you're using require, commomJS or something like you can call angular-register.

var register = require('angular-register');

Basic Usage

angular.module('app', []);

class AppController {
  constructor($scope){
    $scope.test = true;
  }
}

register('app').controller('appController', AppController);

Contributing

Check CONTRIBUTING.md

Credits

Thanks to Michael Bromley for example https://github.com/michaelbromley/angular-es6.

License

MIT © Matheus Poleza