Hi Aimery, I didn't look at your plunk. An directive should do the trick. However, I think you should take another approach. You should add a service, in which you should store the progress. You can then inject that service wherever you need it. (in the final controller, and in the progress directive.) Also I noticed that you write so called fat controllers. That means that you are putting a lot of logic inside those. This makes your application harder to maintain. You should keep your controllers as light as possible, and there should be no business logic in there at all. Certainly no $http calls. A lot of this is addressed in John Papa's styleguide <https://github.com/johnpapa/angularjs-styleguide>. You should really read trough that.
Regards Sander Elias -- 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.
