top | item 6208823

AngularJS 1.2.0-rc1 released

82 points| patrickaljord | 12 years ago |blog.angularjs.org

37 comments

order
[+] tyre|12 years ago|reply
Using Angular was a huge pleasure for developing a Chrome Packaged App in every way but one.

Documentation.

It isn't sexy to write docs; as a developer you don't get that feeling of 'shipping code', but it is one of the most important parts of an open source library.

Knowing that your question is always a google away (not a 'I hope someone asked this on StackOverflow' away) is important and I hope they improve in this arena.

[+] jacques_chester|12 years ago|reply
I concur on the documentation. I spend as much time reading the code to understand the documentation as I do reading documentation to understand code. That seems perverse to me.
[+] almost|12 years ago|reply
It's not the best but I've actually not had too much trouble with the docs. I found the trick is to read the guides first, once you understand the principles that Angular.JS works on the terse reference docs are much more approachable.

A little linking would go a long way though. For example that ngModel page really needs to link to NgModelController!

[+] saiko-chriskun|12 years ago|reply
am I the only one that has never had an issue with angular's docs? :P
[+] RussianCow|12 years ago|reply
Luckily, I've found the source code to be very readable and easy to understand, which isn't something I can say about a lot of JavaScript libraries.
[+] jacques_chester|12 years ago|reply
I know this is the wrong place to vent, but it would be nice if ngRepeat properly supported recursive data structures without having to write new directives.

Edit: and yes, I did actually crack open the source to see if I could make that change. In places it's ... pretty densely written. It seems to me that at least checking to see if an array has any elements and aborting if it's empty would go some of the way to stopping the locking-up problem, but I couldn't work out if that was so.

So like everyone else I have a frankenstein pair of directives to achieve the same thing.

[+] dolphenstein|12 years ago|reply
Sipping on my morning coffee and reading HN. First Bootstrap RC2, and now AngularJS 1.2. I'm going to be busy over the next few days! :-)
[+] nateabele|12 years ago|reply
Note: Shameless plug. :-)

Now that the Angular core team has taken the step of moving the core routing infrastructure out into a separate library, I'd like to take this opportunity to recommend the unofficially-official alternative: https://github.com/angular-ui/ui-router/#ui-router

[+] troym|12 years ago|reply
I avoided routing with Angular as long as I could because my initial attempts were.. shall we say, painful (and I blame me, not Angular).

When I returned to the routing bits in my app, I picked up ui-router. It's such a nice library, I can't say enough good about it other than this: it should be in Angular core.

I most appreciate nested routes and the state handling; the integration with ng-animate is just butter. Thank you!

[+] rgbrgb|12 years ago|reply
What's the best way to install this with bower?
[+] courtewing|12 years ago|reply
The release is ready to go for bower as of a few hours ago. Just use 1.2.x in your bower.json and it'll install the latest 1.2 release (which is this release candidate, currently).

The same goes for angular-resource, angular-cookie, angular-scenario, and the newly created angular-route. They are all versioned along side the main library, so use 1.2.x as the version for all of them.

[+] Kiro|12 years ago|reply
OT but what's the benefit of using bower? Just seems to complicate things.
[+] keda|12 years ago|reply
Interesting enough, looks like there are changes to routeProvider that's causing injection to failed. Unfortunately, not a drop in replacement from 1.1.5. Anyone else experiencing same issue?

Failed to instantiate module editor due to: Error: [$injector:unpr] Unknown provider: $routeProvider

[+] sergiotapia|12 years ago|reply
'spooky-giraffe'? :/

What happened to the cool release names such as Longhorn, Maverick, Feisty Fawn, et al? These days libraries have such funky names, kind of odd. There's a ruby gem out there that's called Steak. Yep, Steak.

[+] phaedryx|12 years ago|reply
In context, there are lots of acceptance test frameworks for ruby, e.g. cucumber, spinach, and turnip. Steak is great marketing. Why use cucumber when you could have steak?
[+] iSnow|12 years ago|reply
Actually, `spooky-giraffe` made me smile because it's such a nice contrast to the overused and tiresome macho code names like `Longhorn` or `Mountain Lion`. I hope the next Angular release will be `superheroic earthworm` or something like that.
[+] dchuk|12 years ago|reply
I'm pretty sure Angular uses these funky release names sarcastically.
[+] leetrout|12 years ago|reply
I'm very happy to see this dropping. Specifically the rewrite of ngAnimate and changing to saner (IMO) class conventions `.foo.ng-enter` and `.foo.ng-enter-active` instead of the previous use of `.foo-enter-setup` and `.foo-enter-start`.