Skip to content

Instantly share code, notes, and snippets.

@icfantv
Created April 13, 2016 14:38
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 icfantv/5ff830729823b3f20e703de3bffa24d7 to your computer and use it in GitHub Desktop.
Save icfantv/5ff830729823b3f20e703de3bffa24d7 to your computer and use it in GitHub Desktop.
Preferred DI Structure
angular.module('app', [])
.controller('MyController', MyController);
function MyController($scope) {
}
MyController.$inject = ['$scope'];
export class MyController {
static get $inject() {
return ['$scope'];
}
constructor($scope) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment