Live data from Hacker News

Angular 2 Survey Results

angularjs.blogspot.com

71–80 of 82 posts

Re: Angular 2 Survey Results

#71

Earlier quoted context omitted.

At a first glance the link you provided promotes double insanity: angular 1 mixed with angular 2 (because angular 1 was not complex enough when angular 2 decided to simplify it with new syntax and requiring typescript which seems to require node.js). Is there some documentation for angular 2 with plain javascript (no typescript) for people who want to keep it simpler ? Can you provide some links ? Thank you.

if you consider a "node.js" requirement (read: a build step) too complex for your projects, you're probably correct in that you don't need any version of angular, react, ember, or anything else.

Complex or not, I don't care. I don't want to install node.js and npm and that's it. If I know the names of those two apps is already too much.

Re: Angular 2 Survey Results

#72

Earlier quoted context omitted.

By component router, are you referring to the stock router in Angular? If so... UI Router is basically what made Angular viable for 2 massive projects I've done. How it isn't a core part of Angular yet, blows my mind.

By component router, are you referring to the stock router in Angular? Component Router will be the stock router in Angular 2, it is supposed to fix most of the problems with the Angular 1 router. I've personally held off refactoring my Angular 1 routing code to UI Router because I didn't want to do it again once Component Router is released for Angular 1.3, oops I meant 1.4, oops again I think I mean 1.5. But I am s…

If you hold out on refactoring to UI Router until 1.0 is released, I'm pretty confident at this point that I can promise you a smooth upgrade path well into the future. (Come to think of it, I'm still pretty confident even if you start now on 0.2.x).

Re: Angular 2 Survey Results

#73

Earlier quoted context omitted.

By component router, are you referring to the stock router in Angular? Component Router will be the stock router in Angular 2, it is supposed to fix most of the problems with the Angular 1 router. I've personally held off refactoring my Angular 1 routing code to UI Router because I didn't want to do it again once Component Router is released for Angular 1.3, oops I meant 1.4, oops again I think I mean 1.5. But I am s…

If you hold out on refactoring to UI Router until 1.0 is released, I'm pretty confident at this point that I can promise you a smooth upgrade path well into the future. (Come to think of it, I'm still pretty confident even if you start now on 0.2.x).

When UI Router 1.0(beta/stable) will be released?

Re: Angular 2 Survey Results

#74
post #63

Earlier quoted context omitted.

Just because someone likes dart, doesn't mean they are from google. As an example I really enjoy dart, and I am not from google

It's a joke

Dartisans are sensitive. Trust me. I felt their wrath just two months ago.

Re: Angular 2 Survey Results

#75

Earlier quoted context omitted.

If you hold out on refactoring to UI Router until 1.0 is released, I'm pretty confident at this point that I can promise you a smooth upgrade path well into the future. (Come to think of it, I'm still pretty confident even if you start now on 0.2.x).

When UI Router 1.0(beta/stable) will be released?

Well, we're pretty close to an alpha release. [0]

After that, it's just a matter of users testing it and telling us what's broken, and us fixing it. A few weeks, maybe?

[0] https://twitter.com/ChrisThielen/status/638040557718126592

Re: Angular 2 Survey Results

#76

Hey, UI Router lead dev here. I'm interested in any & all feedback people have regarding Component Router vs. UI Router, what they like/don't like, and whether or how much they'd like to see UI Router support for Angular 2.

Hi, I've been using AngylarJS & UI-Router for about 2 months. It's great. Some of the shortcomings that struck me were-

Lack of "routing state" - integration with the history API or means to go to "previous" state etc.

No clarity in handling errors from "resolve" - Since there is no controller any failed AJAX request fails silently.

Ability to pass data (not params, more like a model) between states. This I think sparks the debate of having services to share data. But there are use cases wherein you would want to transition to-fro controllers (eg. multi page form).

Re: Angular 2 Survey Results

#77
post #49

It's funny how so many development communities feel like they need to start over and create an entire new framework. Perl 6, PHP 6 (which was never released), the disaster that is Python 2/3 (many standard libraries were renamed breaking a ton of libraries, and now Angular. PHP, which is hated by many here because it isn't hip, at least allows you to run 4 code on the 5 interpreter with no issues. When Microsoft did…

You have no idea what you're talking about.

Yes, yes I do. All of the examples I gave come from actual experience. You also added absolutely nothing to the discussion.

Re: Angular 2 Survey Results

#78

Earlier quoted context omitted.

haha, I guess I hurt the feelings the open source community. BOO HOO!!

You're not really adding anything to the conversation. If you even did a cursory search as to the motivations behind why Angular 2.0 was a rewrite you'd learn that it has everything to do with compatibility with web components and ES6 and nothing to do with "money" as you say (I'll save you the two seconds of effort: http://eisenbergeffect.bluespire.com/all-about-angular-2-0/ ). In fact, it was a huge blow to Angular…

Even if the underlying components changed, they could still keep angular backward compatible. They choose not to.

It's the same with many other frameworks and languages. Most of these drastic changes have to do with the politics of the community

I still disagree that it doesn't have anything to do with money. You can't deny the fact that the majority of these communities make money on books, speaking engagements, and consulting.

Re: Angular 2 Survey Results

#79

Hey, UI Router lead dev here. I'm interested in any & all feedback people have regarding Component Router vs. UI Router, what they like/don't like, and whether or how much they'd like to see UI Router support for Angular 2.

We started using ui-router recently and from quick profiling of rendering it looks like a lot of time is spent in ui-router transitions (chained promises) and in generating/validating ui-sref links. I don't know if this will get linearly worse with increasing size of application, but anyway this is why I'm interested in checking out Component Router. Do you have any pointers to differences between Component Router an…

Great questions, thanks.

> We started using ui-router recently and from quick profiling of rendering it looks like a lot of time is spent in ui-router transitions (chained promises)

I've never profiled transitions specifically, but the number of promises is generally determined by (a) how many templates you have in a target state, and (b) how much asynchronous data (resolves) each state loads.

> and in generating/validating ui-sref links.

State names themselves are validated once on initial template load. If the target is parameterized, we do set up a $watch() on the parameter values to update the href, which is a small incremental perf hit per use (and you'll naturally tend to get more churn the more deeply-nested the scope in which you use them is).

> Do you have any pointers to differences between Component Router and ui-router? I'm especially interested in pitfalls of both.

The biggest differences that I'm aware of are:

- Component Router supports components (naturally), which UI Router does not (this is on the roadmap)

- Component Router's transition pipeline appears to be more flexible than UI Router's (we're refactoring heavily to encapsulate & expose more APIs)

- As with ngRoute, Component Router's configuration binds view components (or controllers/templates in ngRoute's case) directly with URLs, whereas UI Router provides a more sophisticated abstraction in the form of a hierarchical state machine, which many people find more ideally-suited to large, complex apps (see other comments)

- UI Router provides more sophisticated abstractions for encapsulating and modeling your domain in terms of URLs, for example, Type objects [0]

> I haven't debugged ui-router much yet, but maybe I'm doing something wrong

Let me know if you encounter any specific issues, or post to StackOverflow. One or more of us are usually fielding questions there.

[0] https://angular-ui.github.io/ui-router/site/#/api/ui.router....

Re: Angular 2 Survey Results

#80

Hey, UI Router lead dev here. I'm interested in any & all feedback people have regarding Component Router vs. UI Router, what they like/don't like, and whether or how much they'd like to see UI Router support for Angular 2.

Hi, I've been using AngylarJS & UI-Router for about 2 months. It's great. Some of the shortcomings that struck me were- Lack of "routing state" - integration with the history API or means to go to "previous" state etc. No clarity in handling errors from "resolve" - Since there is no controller any failed AJAX request fails silently. Ability to pass data (not params, more like a model) between states. This I think spa…

> But there are use cases wherein you would want to transition to-fro controllers (eg. multi page form).

This is interesting. Could you post a GitHub issue describing your use case and an pseudocode example of how you'd see it working?

Post reply on HN