pbastowski / angular2-now

Angular 2 @Component syntax for Angular 1 apps
MIT License
145 stars 15 forks source link

(feat) Added @MeteorReactive annotation to trigger $reactive #41

Closed dotansimha closed 8 years ago

dotansimha commented 8 years ago

@pbastowski @Urigo @netanelgilad

Added the @MeteorReactive annotation in order to support Angular-Meteor 1.3. Used an annotation in order to do not effect another users of angular2-now.

Also, added the @LocalInjectables annotation which puts all the injectables on the this context, in order to be able to use it from class methods, for example:

@Inject('$http')
@LocalInjectables
class t {
   constructor() {

   }

   myMethod() {
        this.$http(...);
   }
}
kamilkisiela commented 8 years ago

@dotansimha That's very helpful!