Skip to content

Instantly share code, notes, and snippets.

@stryju
Created February 14, 2015 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stryju/77109a3e1af24304ad36 to your computer and use it in GitHub Desktop.
Save stryju/77109a3e1af24304ad36 to your computer and use it in GitHub Desktop.
angular 1.x on es6
export default class FooController {
// @ngInject
constructor( $document ) {
console.log( $codument );
}
}
// import angular from 'angular'; // SOON... i hope :'(
import FooController from './foo-controller';
export default module( 'foo', [] )
.controller( 'FooController', FooController )
.name;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment