--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/JnE5SR41g2sJ.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/angular?hl=en.
<!doctype html><html ng-app><head> <script src="http://code.angularjs.org/angular-1.0.1.min.js"></script> </head><body><span ng-init="count=0">count: {{count}}</span><ul>
<li ng-repeat="n in [1,2,3]"><button ng-click="$parent.count = $count + n">{{n}} {{count}}</li></ul></body></html>
The whole point of the doomsday machine is lost if you keep it a secret! Why didn't you tell the world?
-- Dr. Strangelove, in Dr. Strangelove
This is not an angular issue. This is how prototype inheritance works
in Javascript.
AngularJS is a JavaScript framework. It is based on JS with all the goodnes and all the constrants of that language.
I may not like it (I am not saying I do), you may not like it, AngularJS team may not like it, but it is what it is.
What would you suggest?
Regards,
Witold Szczerba
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/KYOtDqUDQjwJ.
You can use "a && b || c" instead of "a ? b : c" in templates.
The ?: operator will be supported in the future sometime as well.