Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I have a philosophy question about AngularJS and directives but correct implementation of the next problem solves it. So,

  1. I need an AngularJS directive,
  2. It loads some data via several (not one!) $http requests,
  3. It shows it,
  4. It updates data (and re-shows it) every second,
  5. The view has to be unchanged while data is loading/reloading.

How should I do it in a correct way?

And what about if I need a controller but not directive? (Difference is that controllers have resolve options but directives don't.)

P.S.: I need a concrete scheme or a code! I know which components ($http, $q, etc.) I have to use. I don't know how to do it in a right way!

share|improve this question
    
Could you share a little more information. The current format of you questions is very broad. What are you trying to model, what solutions have you tried, have you any code you could share? –  Tony Cronin Feb 15 at 16:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.