Thanks for your answer and fiddle!
Yes, I'm new to angular but I really want to learn it the right way.
I will read through the styleguide and try again.

Regards,
Nico

Am Freitag, 20. März 2015 13:48:31 UTC+1 schrieb Sander Elias:
>
> 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 angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to