Domanda

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!

È stato utile?

Soluzione

Crate a Service to get $http resources and use $

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top