Last active
December 28, 2015 23:29
-
-
Save MattForshaw/7578795 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Agular form... | |
<select name="customer" ng-model="newBooking.customer" ng-options="customer as customer.name for customer in customers"></select> | |
controllers.js... | |
function BookingsCtrl($scope, $http, $timeout, Bookings, Flights, Customers) { | |
// Define a refresh function, that updates the data from the REST service | |
$scope.refresh = function() { | |
$scope.bookings = Bookings.query(); | |
$scope.flights = Flights.query(); | |
$scope.customers = Customers.query(); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment