4 ms·
Another nice feature of angular is that templates are promise-aware. So the following controller is equivalent for most purposes: function thingCtrl($scope
by grncdr 13y ago
Another nice feature of angular is that templates are promise-aware. So the following controller is equivalent for most purposes:
function thingCtrl($scope, Thing) {
$scope.things = Thing.all()
}
thingCtrl.$inject = ['$scope', 'Thing'];