Hi Raphael,

You are doing way to much work in your controller. Most of the things you 
do in there, should be in services and/or controllers. Aside from that, 
creating a good working tab system is more difficult that one would expect 
;) I'm pretty sure that even in this group I posted a couple of solutions 
for it. 
What you should do first is read through John Papa's styleguide 
<https://github.com/johnpapa/angularjs-styleguide> (I should create a macro 
for that). It will make you understand a lot more. Even if you don't 
understand everything there is in there now, it will make your code a whole 
lot more maintainable.

Grabbing the element in a repeater is simple enough, but it really should 
not be done in a ngController. 
The simplest solution for your issue, is create a small directive that 
wraps your editor. (Or google for it, probably someone else has done it 
already)

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.

Reply via email to