Hi Nico,
There where a couple of problems. I solved most of them in the updated fiddle <http://jsfiddle.net/rsg5cLkg/1/>. You should really read through the john papa's styleguide <https://github.com/johnpapa/angularjs-styleguide>! it will clarify a lot. If you are serious about angular, stop trying to solve things the jQuery way. When you use a click event, it is a native event that is happening, and you need to tell angular to update the view. You didn't, so you did not see the update. Also, the update was not being done, because the DOM event handler knows nothing about scope, and putting it in the parameters of your function would break all ties. You seem new to angular, so once again read the above style-guide. Using scope and controllers in the way you did in your sample will end up with difficult to maintain projects. With kind regards Sander -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
