Live data from Hacker News

AngularJS 1.2.0-rc1 released

blog.angularjs.org

11–20 of 39 posts

Re: AngularJS 1.2.0-rc1 released

#12
post #6

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 thi…

My favorite Angular doc page: http://docs.angularjs.org/api/ng.directive:ngModel

Re: AngularJS 1.2.0-rc1 released

#13
post #6

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 thi…

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.

Re: AngularJS 1.2.0-rc1 released

#15
post #7

What's the best way to install this with bower?

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.

Re: AngularJS 1.2.0-rc1 released

#17

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 st…

`ng-repeat` and `ng-include` work fine for recursive data structures.

http://jsfiddle.net/uXbn6/378/

Re: AngularJS 1.2.0-rc1 released

#18
post #17

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 st…

`ng-repeat` and `ng-include` work fine for recursive data structures. http://jsfiddle.net/uXbn6/378/

I had that as a previous approach, actually. Creating two nested scopes for each item made debugging even harder.

It would also be nice if it just did the expected thing out of the box. I can accept that there may well be sound technical reasons for the way it is, but I haven't seen any. All that happens when you raise this limitation is one of three things:

1. "Use ngIf".

2. "Use ngInclude".

3. "Write your own directives".

I tried 1 and 2, that's why I'm on 3.

Re: AngularJS 1.2.0-rc1 released

#19
post #6

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 thi…

am I the only one that has never had an issue with angular's docs? :P

You might well be.
Post reply on HN