Seeing a lot of comments about how Angular had no migration plan. Migration was discussed at length at ng-conf back in March, including a large portion of the keynote(s). They made it very clear a smooth and simple migration was top priority. Part of migration talk in keynote: https://youtu.be/QHulaj5ZxbI?t=12m43s Full playlist: https://youtu.be/QHulaj5ZxbI?list=PLOETEcp3DkCoNnlhE-7fovYvq...
Yes, it is a considerable frustration. At the beginning, the Angular team said something along the lines of "we are working on a Angular 2, after we figure out how it should work then we will consider migration and come up with a plan". For some reason this was widely interpreted as "there will be no migration plan".
Angular 1 and Angular 2 integration: the path to seamless upgrade
91–100 of 102 posts
Re: Angular 1 and Angular 2 integration: the path to seamless upgrade
#92I know that hating angular is popular these days, but i'm still using it, and it serves me well. Looking forward to Angular 2!
Yeah, it seemed that way because there was no migration path... That is fixed though ;) Almost everyone i know is using something in the likes of AngularJS
Re: Angular 1 and Angular 2 integration: the path to seamless upgrade
#93Every time I use Angular it feels like it's doing things the right way and it's becoming the Rails or Django of the JavaScript world. Wish I had fought to use AngularJs directives and $resource instead of messing about with ReactJS and jQuery ajax calls. With this migration plan it seems silly not to keep hacking with AngularJS 1.x
Re: Angular 1 and Angular 2 integration: the path to seamless upgrade
#94One of the biggest benefit of Angular is the vast amount of libraries built on it, like bootstrap-ui and ui-grid to name a few, how can we switch to Angular 2 until the most adopted ones don't switch too? (real question)
Re: Angular 1 and Angular 2 integration: the path to seamless upgrade
#95Earlier quoted context omitted.
It's illegal. Go to your console and type el.setAttribute("(foo)", "bar") and see what happens.
No it is not. See the discussion here: https://github.com/angular/angular/issues/133
Re: Angular 1 and Angular 2 integration: the path to seamless upgrade
#96Earlier quoted context omitted.
No it is not. See the discussion here: https://github.com/angular/angular/issues/133
What there contradicts what I said? I'm aware of innerHTML hacks that make it possible to work around but those are not valid attribute names. I'm not even against the syntax; i like it , but that doesn't change the fact that it is invalid html.
I trust the spec more than an implementation.
Re: Angular 1 and Angular 2 integration: the path to seamless upgrade
#97Earlier quoted context omitted.
What there contradicts what I said? I'm aware of innerHTML hacks that make it possible to work around but those are not valid attribute names. I'm not even against the syntax; i like it , but that doesn't change the fact that it is invalid html.
Parent quotes the W3 Spec to prove that it's legal, and your response is "it's illegal because $BROWSER say's so"? I trust the spec more than an implementation.
If true I'm not sure it matters if every browser throws an exception.
Re: Angular 1 and Angular 2 integration: the path to seamless upgrade
#98Earlier quoted context omitted.
Parent quotes the W3 Spec to prove that it's legal, and your response is "it's illegal because $BROWSER say's so"? I trust the spec more than an implementation.
The parent didn't quote the spec, they quoted a GitHub issue with 71 participants. If you want to post a link to the spec text please do. If true I'm not sure it matters if every browser throws an exception.
[1]:http://www.w3.org/TR/html-markup/syntax.html#syntax-attribut...
Re: Angular 1 and Angular 2 integration: the path to seamless upgrade
#99Earlier quoted context omitted.
Not that smooth if you saw the comments on HN last week - teams lost months of productivity keeping up with the rewrites in Ember, even with no immediate breaking changes.
Can I have a link to that please?
Re: Angular 1 and Angular 2 integration: the path to seamless upgrade
#100Every time I use Angular it feels like it's doing things the right way and it's becoming the Rails or Django of the JavaScript world. Wish I had fought to use AngularJs directives and $resource instead of messing about with ReactJS and jQuery ajax calls. With this migration plan it seems silly not to keep hacking with AngularJS 1.x
If you're using React you could look into different flux frameworks or even Relay+GraphQL to avoid jQuery ajax (or at least hide it). That last thing is the bleeding edge right now but looks promising. Flux is probably here to stay and you have a ton of libraries to choose from. I started with Reflux but is now using Alt.