Files
brewman/brewman/static/scripts/unposted.js
Amritanshu d1a4fc1164 Updated: Angularjs to v1.2.0 final.
Updated: Loading-bar to v0.0.5
Updated: Using the $promise of function to return promises instead of $q and callback function.
2013-11-12 00:29:23 +05:30

16 lines
417 B
JavaScript

'use strict';
var UnpostedCtrl = ['$scope', 'info', 'Unposted', function ($scope, info, Unposted) {
$scope.info = info;
$scope.refresh = function () {
Unposted.query({}, function (result) {
$scope.info = result;
$scope.apply();
});
};
}];
UnpostedCtrl.resolve = {
info:['Unposted', function (Unposted) {
return Unposted.query({}).$promise;
}]
};