Created
February 14, 2015 13:50
-
-
Save stryju/77109a3e1af24304ad36 to your computer and use it in GitHub Desktop.
angular 1.x on es6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default class FooController { | |
// @ngInject | |
constructor( $document ) { | |
console.log( $codument ); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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