Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does that project relate to new upcoming AngularJS 2.0 #48

Open
Miuler opened this issue May 8, 2015 · 7 comments
Open

How does that project relate to new upcoming AngularJS 2.0 #48

Miuler opened this issue May 8, 2015 · 7 comments
Labels

Comments

@Miuler
Copy link

Miuler commented May 8, 2015

Considering that AngularJS 2.0 is a serial killer
https://twitter.com/mgonto/status/525206705156939776
How does that fit with this project road-map. Will it support / relate to / with AngularJS 2.0 to be more like Dart + Angular 2.0 but with Scala?

@jokade
Copy link
Owner

jokade commented May 11, 2015

I'm not sure about the project road-map and the project's relation to AngularJS 2.0. I've only started to consider Angular 2.0 three months ago, and there was not much information on the concept and implementation details available back then. This has changed with the publication of the Angular 2.0 API preview.

My first intention was to develop angulate into a migration path from Angular 1.x to Angular 2.0 by back-porting some of the core features of Angular 2.0, and providing a consistent API for angulate that can be used with Angular 1.x and Angular 2.0. That's why I have included a Angular2-style @Component annotation with the current 0.2-SNAPSHOT. However, since there are some profound conceptual changes in Angular2 and the templates are not compatible, I wonder if it's worth the effort.

What's your opinion? Would it be useful to have a library that supports some common functionality that can be compiled to Angular 1.x and Angular 2.x? Or do you think there is no need for migration support, since projects either keep using Angular 1.x or have to be completly re-written for Angular 2.x, anyway?

@msatala
Copy link
Contributor

msatala commented May 11, 2015

I prefer for angulate to target angular 1.x and when angular 2.x becomes a real thing, create angulate2. There are several reasons for this:

  • You are obviously busy and the development of angulate is quite slow. I would prefer bug-free and feature-rich implementation for angular 1.x with shorter development cycle.
  • What you are trying to achieve sounds like a good idea, but I think it might never work as you intend. Take @component annotation for instance. It is clearly better approach and I wanted to use it in my hobby project. However it is incompatible with the rest of the angular 1.x ecosystem so there's not much point. My project (and I think most others as well) is centred around ui-router which only works with controllers.

By the way thank you for your hard work on angulate. In combination with ionic framework it allowed me to create web, mobile, android and ios application with one codebase written in the best language in the world - scala :)

@jokade
Copy link
Owner

jokade commented May 11, 2015

I prefer for angulate to target angular 1.x and when angular 2.x becomes a real thing, create angulate2.

You're right, it's probably best to start a separate project for Angular2, and maybe later a helper library (or sbt plugin) to ease the transition from angulate to angulate2 (if possible).

BTW: I've opened a separate discussion thread for the project road map.

@Miuler
Copy link
Author

Miuler commented May 12, 2015

I prefer for angulate to target angular 2.x

@Miuler
Copy link
Author

Miuler commented May 12, 2015

Angular 2 is clean, is better than 1.x, and since this project is new, it would be nice to migrate to angular2

@joaopmafra
Copy link

I prefer for angulate to focus on angular 1.x too. Angular 2 isn't production ready, there are many change possibilities. Focusing on angular 1.x will let people create applications for production now, not for tomorrow.

@jokade
Copy link
Owner

jokade commented May 17, 2015

Hi all,
since Angular 2 really breaks with most of the Angular 1.x concepts (and API), I've decided to start a seaparate project for the Scala.js / Angular 2 binding.
Maybe there will be a library (or sbt plugin) in the future to ease the migration from angulate to angulate2, but right know these two projects are completly independent.

Cheers, Johannes

@jokade jokade closed this as completed May 17, 2015
@jokade jokade reopened this May 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants