Hi Aimery,

Yes you should make this into a directive, which you can then include once 
in your view.
Here is a small sample 
<http://plnkr.co/edit/tpl:480DsyCUkgvMsKYk7pyg?p=preview>to get you going. 
It just shows the mechanics you need. I think you need to add 2 things.

   1. The directive to put the stuff you need in the view.
   2. A service to controll the content and the show/hide of 1

Is this enough to get you going?

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