Live data from Hacker News

Angular 2 Final Released

angular.io

101–110 of 452 posts

Re: Angular 2 Final Released

#101
post #48

I evaluated React and Angular 2 several months ago and picked React. Some of the issues I found in Angular 2: The HTML template in Angular 2 is stored in a string. This has several disadvantages: 1. Editors can't do syntax coloring. 2. Editors can't do auto-indenting. 3. Editors can't offer "intellisense" suggestions. 4. Editors can't match tags. You embed variables in this template string like this: ' {{hero.name}}…

Angular can also use seperate template files, I actually prefer this compared to having the logic and view (and CSS...) in the same file.

Re: Angular 2 Final Released

#102

I use Angular 2 in production since November 19, 2015 (alpha.46). Currently I've built 3 web apps (40, 60 and 20 components each), 3 mobile apps (with Ionic 2) and my employer have plans for more apps. Breaking changes during alpha stage were expected, so I didn't have issues with it. Most positive things I want to highlight: 1. Components are encapsulated and truly reusable (and without dependencies hell). 2. You do…

Can someone elaborate on point 2 about 3rd party JS libraries? How does Angular 2 allow these libraries to work out of box? For example, masonry or Google Maps JavaScript SDK. In Angular 1 the only way to use them without resorting into angular-XYZ libraries is to put them in a directive and use the link function to write all the logic and DOM manipulation. What's different in Angular 2?

Angular uses Zone.JS for it.

Re: Angular 2 Final Released

#103

I use Angular 2 in production since November 19, 2015 (alpha.46). Currently I've built 3 web apps (40, 60 and 20 components each), 3 mobile apps (with Ionic 2) and my employer have plans for more apps. Breaking changes during alpha stage were expected, so I didn't have issues with it. Most positive things I want to highlight: 1. Components are encapsulated and truly reusable (and without dependencies hell). 2. You do…

What about angular CLI - ? have you found that useful in your workflow?

I'm waiting when they implement some more flexible (configurable) tool, and meanwhile I use angular2-seed.

Re: Angular 2 Final Released

#104
post #57

Earlier quoted context omitted.

This is great advice! What do you think about routing? angular has it's own router, so can Go have. What to choose?

You don't choose between those two routers, they are not replacements for each other. At the risk of stating the obvious, the Angular router handles routing for the Angular frontend, the Go router handles routing for the Go backend (the initial page load, the AJAX calls made from Angular to get data...).

Thanks!

Re: Angular 2 Final Released

#105
post #48

I evaluated React and Angular 2 several months ago and picked React. Some of the issues I found in Angular 2: The HTML template in Angular 2 is stored in a string. This has several disadvantages: 1. Editors can't do syntax coloring. 2. Editors can't do auto-indenting. 3. Editors can't offer "intellisense" suggestions. 4. Editors can't match tags. You embed variables in this template string like this: ' {{hero.name}}…

Why would you want HTML embedded into your component? Sounds like a maintenance nightmare.

Re: Angular 2 Final Released

#107

Earlier quoted context omitted.

Which editors? JetBrains Webstorm has the same things for both Angular2 and React. https://www.jetbrains.com/webstorm/whatsnew/#v2016-2-angular... I do agree that I really really was a fan of the backticks for ES6 / react for templating. Avoiding the whole " vs ' escaping nightmare is something i've always looked forward to. That seems like a very simple fix for them though, potentially. edit: tone

In the page you linked the template is stored in an external html file in which case you get syntax checking for html but not the embedded expressions.

I only do backend node.js so I don't know much about the frontend stuff, but when I look at

https://blog.jetbrains.com/webstorm/2016/04/angular-2-workfl...

it seems to me they in fact do support the embedded expressions?

Re: Angular 2 Final Released

#108

As someone who uses Angular 1 currently but would pick React for their next project, I'd love to see a list of reasons why I should use Angular 2 over React. If nothing else, Angular just stranded all their developers, while React has a huge head start on mindshare/plugins/tutorials/etc.

At the moment I also moved to react, but there are some obvious advantages in angular 2:

1. as others mentioned its a fuller framework, mostly akin to using react with redux (or flux etc...) and a di framework. This also means that angular 2 third party components are probably easier to integrate.

2. Reactive Expressions, which angular2 uses in many places, is a joy to work with (though they might become maintenance hell later on I think). You can use RxJs with React of course, but it's easier when your framework is based on it

3. It uses string templates - which means that some things such as dynamic templates and per user customization of html would probably be much easier to do then in React.

4. It has Ionic - which is much much faster to develop for mobile with then react-native (though obviously there are important differences). It's unlikely that an Ionic like framework for react will gain traction with react-native to compete with.

Re: Angular 2 Final Released

#109

I use Angular 2 in production since November 19, 2015 (alpha.46). Currently I've built 3 web apps (40, 60 and 20 components each), 3 mobile apps (with Ionic 2) and my employer have plans for more apps. Breaking changes during alpha stage were expected, so I didn't have issues with it. Most positive things I want to highlight: 1. Components are encapsulated and truly reusable (and without dependencies hell). 2. You do…

I really really really wish they'd called it something like Bosium just to make searching for issues a lot easier. I keep coming across angular 1 solutions.

Re: Angular 2 Final Released

#110
post #24

Earlier quoted context omitted.

That's funny; as someone familiar with React, Angular, etc., the Java ecosystem seems utterly impenetrable.

Yeah - we consult with an angular + Java group (for angular only) --- I can't understand half of what they are talking about when they talk about Enterprise level Java web projects. Java for Hadoop, Spark etc I work with daily.

[deleted]
Post reply on HN