angular-es6
angular-es6 copied to clipboard
An experiment in using ES6 features with AngularJS 1.x
I am battling getting $onChange to work (I can get $onInit to fire just fine). Here is a portion of my ES6 class (which is my controller) ``` export default...
Is there a difference between the two when using register?
``` js class ThingFactory { /*@ngInject*/ constructor($timeout) { this.$timeout = $timeout; } newThing() { console.log('Getting a new Thing...'); return this.$timeout(() => new Thing(), 100); } } register('app').factory('thingFactory', ThingFactory); ``` In...
Hello, I want to thank you for this awesome project. I'm switching to es6 and it's really helpful to have all the examples. :) I'd like to avoid the register...
Parent-child relationship between controllers, directives. In es5-angular these relationship are implemented using scope and scope inheritance. Now we use classes, extends, super methods. But my problem is when I create...