pbastowski / angular2-now

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

Support for Angular 1.5 #51

Closed robhicks closed 8 years ago

robhicks commented 8 years ago

Does angular2-now support angular 1.5 and its new components?

kamilkisiela commented 8 years ago

@robhicks What do you mean by that?

There are no breaking changes so angular2now should work with v1.5 (which is a RC atm).

But if you're talking about angular.component(). It is basically just a wrapping function for angular.directive().

Here is a commit with this new feature https://github.com/angular/angular.js/commit/54e816552f20e198e14f849cdb2379fed8570c1a

So I think you can easily use just @Component decorator.

robhicks commented 8 years ago

@kamilkisiela Thanks that's what I needed to know.