Ember.js does seem to have some nice elements:
1) Computed properties with databinding support.
grade: function(){ var b = this.board; this.winner = row(0) || row(1) || row(2) || col(0) || col(1) || col(2) || diagonal(-1) || diagonal(1); function row(row) { return same(b[row][0], b[row][1], b[row][2]);} function col(col) { return same(b[0][col], b[1][col], b[2][col]);} function diagonal(i) { return same(b[0][1-i], b[1][1], b[2][1+i]);} function same(a, b, c) { return (a==b && b==c) ? a : '';}; },2) Support for templating logic {{#IF}}, {{ELSE}}, AND {{#UNLESS}} to
conditionally skip/include template sections
3) Composed child view templates
Can the AngularJS dev team provide insight/thoughts regarding
AngularJS support for the above?
(ie. how do we achieve these in AngularJS apps ? )
- ThomasB
On Jan 15, 1:55 pm, Johan Steenkamp <johan.steenk...@gmail.com> wrote:I came across this post and pointed out that the author had missedAngular.js - after taking a look he rated it second after ember.js
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
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.
http://jsfiddle.net/dandoyon/VdUQa/
Currently, you get (scope, newVal, oldVal)
i believe this may change to have scope at the end of the signature list
--dan
but as a literal string, you can't give it an actual array.
scope.$watch( '[firstName,lastName]',
in the end you are doing same thing with less quoting, see below update to prior example
http://jsfiddle.net/dandoyon/FnnDG/4/
--dan
Fwiw angular site plays better with my tablet site - ember is an overlapping float mess - both could use a dash of skeleton
FWIW, I was using Ember.js before I discovered Angular and find Angular far nicer. I find the way you spell things in Angular to be more concise and more elegant, and hit far fewer stumbling blocks trying to integrate with other things (e.g. pushing updates from server via juggernaut (and subsequently cometd)).I'm still a n00b to both of them though so take this with a grain of salt.
--
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/-/4mfxdXCfDBkJ.
--
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/-/8QWApKKothAJ.
ad 3/ at this point, you can use ng:include/ng:view, or share html templates by creating a widget.But we know, this is not enough, new compiler will allow templates - so that you can define a template and use it multiple times on your page. The template can be loaded async as well.
thanks, but am I missing something here (like the original link)? I
assume you're referring to
http://codebrief.com/2012/01/the-top-10-javascript-mvc-frameworks-reviewed/
?
-jf
--
http://richard.wilkinson.fr/?tag=fon SUCKS!!!
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."
--Richard Stallman
"It's so hard to write a graphics driver that open-sourcing it would not help."
-- Andrew Fear, Software Product Manager, NVIDIA Corporation
http://kerneltrap.org/node/7228
Thanks for the information and success. <a href="http://www.kabbanet.ro/forum.php" title="forum kabbanet">http://www.kabbanet.ro/forum.php</a>
Thanks for the information and success. <a href="http://www.kabbanet.ro/forum.php" title="forum kabbanet">http://www.kabbanet.ro/forum.php</a>
Nice! I figured someone would come up with a simpler solution than mine. Thanks for the information and success. http://sitedesignnet.ro
vineri, 25 mai 2012, 21:22:59 UTC+3, grig...@gmail.com a scris:
Thanks for the information and success. http://www.kabbanet.ro/forum.php http://www.kabbanet.ro/forum.php
Does ember also have something like directives? I'm fed up with angularJS forced isolated scopes when wanting to set widget properties by attributes.
--
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/-/5qV4VrXJME8J.