Model
Two way data binding
findash.controller('ExpenditureCreate', ['$scope', '$resource', '$filter', 'expendituresService',
function($scope, $resource, $filter, expendituresService) {
$scope.expenditure = {}
$scope.create = function(expenditure) {
alert(expenditure.name); // same as inserted in input above
};
}
]);