Pregunta

I need a code for the next problem. I know which components ($http, $q, etc.) I have to use. I don't know how to do it in a right way! So,

  1. I need an AngularJS directive or controller,
  2. It loads some data via several $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.

Thanks!

¿Fue útil?

Solución

Crate a Service to get $http resources and use $

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top