-
Notifications
You must be signed in to change notification settings - Fork 2
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
Migration to angularjs 2? #24
Comments
Also moving towards ES6 this is a package manager that is really shining: |
python-like imports... interesting |
Just to add comparison to the discussion: http://aurelia.io/docs.html#/aurelia/framework/latest/doc/article/getting-started |
Another important concept is that Angularjs 1.5 has added few things which lie in the middle of angular 1 and 2. For example see how components (ex directives) works now: |
Also, to get up to speed with 1.5, from https://toddmotto.com/rewriting-angular-styleguide-angular-2:
|
A free angularjs 2 video course is here: It requires registration. |
Slides to make up to the new system: |
Note: one possible alternative to angularjs (probably the only one, at least to my eyes) is the aurelia framework. It's (much) simpler to install and configure and launch with nodejs, I just tested it. It also has a cool integration with material design lite thanks to this plugin. Since yesterday I tried to start an angular2 project and felt bad as 2 years ago when trying yoeman and grunt, we might really understand the risks of angular2. In the meanwhile we should really exploit the angularjs1.5+ |
While on vacation I was reading here and there a lot of people complaining about the direction that angularjs2 is taking comparing to how the javascript developers took. So React is the other way aroung. Based on this interesting article: "For the long term, I, personally, would choose React, using Redux architecture, Axios for promise-ready HTTP requests and react-router. " Uhm. Don't know. I'll keep adding notes here to take a better decision at the end of the year. |
It's easier https://codequs.com/p/BksMQsdWj/why-angular2-is-easier-than-angularjs but yet the compile problem is very heavy |
An approach in the middle: To do so, we can interact with Redux. See this tutorial with ngRedux to get the sense of how redux works. The syntax is a little bit different. Note: inspired by this tweet |
More info to migrate to angularjs2 from 1: |
Another great resource for migration, by our friend Todd |
Un interessante componente "auth0" a costo nullo per gli sviluppatori, che funzionerebbe su angular1 e 2 https://auth0.com/blog/angular-2-authentication/ |
So what's the problems with frontend development? At the very minimum in this issue we should somehow not forget that in JS we must keep in mind that simpler is better. So should we consider as another option going to move to something more close to plain vanilla JS? Some example are vue or elm. Or: should I stop working on frontend development? |
In this discussion, writing clear angularjs, and use that MVC pattern to its best, is a key point. Somebody wrote about it: Basically it tells developers to use functions instead of expressions, variables and code in the View. I almost agree, the problem is about the digest cycle evaluation and performances when doing so. |
In case of getting better with angularjs 1.x, here's what to read. |
So reading the latest from todd I have the feeling that angularjs1 won't be enough for us. Since react doesn't even have routing and we rely a lot on that, the last thing to check to understand if we need angularjs2 is a prototyping example to create two similar controllers. Maybe @mdantonio can think of this example and I can create a nodejs container to test it. |
A good starting point could be
angular-cli
:https://scotch.io/tutorials/use-the-angular-cli-for-faster-angular-2-projects
The text was updated successfully, but these errors were encountered: