在AngularJS中使用ES6 - Darren Ji - 博客园
ES6中Directive的写法class MyDirective{ constructor($interval){ this.template = 'I\'m a directive'; this.restrict = 'E'; this.scope = {}; this.$in...
Angular 1.x + ES6 开发风格指南 - 推酷
2016年5月26日 - 但是有一点毫无疑问,就是使用ES6来写业务代码是势在必行的。 我们可以借助ES6...比如用compile模拟init,postLink模拟didMounted, $scope.$on('$destro...