angular-register

Register your angular modules using ES6 sintax

Usage no npm install needed!

<script type="module">
  import angularRegister from 'https://cdn.skypack.dev/angular-register';
</script>

README

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