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

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -