javascript - angularjs load status promises -


I have created the factory and I load the data in the controller. I want to create the status of the load data, like how can I do this in the normal text state?

  var myApp = angular.module ('myApp', []); MyApp.controller ('aukcjeController', function ($ scope, auctionfender) {$ scope.Data = {}; $ scope.get = function {data} {auctionFactory.getOrders (data) // somethink here ??? .progres ( Function (order, status) {$ scope.status = status}) // .vivet (function) {$ scope.Data = commands; console.log ($ scope.Data); $ scope.dataLoaded = true; }) .error (function (error) {console.log (error);})}}; // get ();}); MyApp.factory ('auctionfactory', function ($ http) {var fac = {}; fac.get order = function () {return $ http.get ('file.php', {cache: true})}} return FAC;});  


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -