News for hackers. Stuff that matters.
Re:AngularJS 1.2.0: timely-delivery by binofbread on Friday November 08, 2013 @06:03PM (#6699709)
I'm running into a similar issue and fairly new to angular. In fact, the tutorial I followed even set up the server calls to use the _id field when looking at a specific model (ie leagues/{{ league._id }} ). What's the proper way to go about fixing this?
Re:AngularJS 1.2.0: timely-delivery by psgibbs on Friday November 08, 2013 @06:06PM (#6699727)
You can always create functions that refer to the private element:

MyObject.prototype.id = function(){return this._id;};

Which gives you: leagues/{{ league.id() }}

Re:AngularJS 1.2.0: timely-delivery by camus2 on Friday November 08, 2013 @07:21PM (#6700016)
so what the point of introducing a "private" access modifier that doesnt exist in javascript since one can still access privates? looks like pure politics within google.

A breaking change like that shoved at the latest minute? you bet it is.

Re:AngularJS 1.2.0: timely-delivery by btford on Friday November 08, 2013 @08:21PM (#6700240)
> shoved at the latest minute

The pull request was opened 3 weeks ago with plenty of discussion.

Re:AngularJS 1.2.0: timely-delivery by thatthatis on Saturday November 09, 2013 @12:41AM (#6700790)
3 weeks of discussion for a breaking change is "last minute" in my book
Re:AngularJS 1.2.0: timely-delivery by camus2 on Friday November 08, 2013 @09:03PM (#6700368)
why didnt you think about having this feature optional? class based controllers are optional yet,because of them you introduce a feature that affect function based controllers ?
Re:AngularJS 1.2.0: timely-delivery by btford on Friday November 08, 2013 @10:15PM (#6700516)
> why didnt you think about having this feature optional?

Opt-in security features aren't very useful.

> class based controllers are optional yet,because of them you introduce a feature that affect function based controllers ?

That's how competing constraints work out sometimes.

We're always looking to improve though. The code is open source, so feel free to submit a PR or fork it if you disagree. :)

Re:AngularJS 1.2.0: timely-delivery by 1qaz2wsx3edc on Friday November 08, 2013 @06:07PM (#6699732)
Don't use 1.2.0 until it's reverted or write a getter.