Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jrgcubano/a0d1518cba31edd91f3e to your computer and use it in GitHub Desktop.
Save jrgcubano/a0d1518cba31edd91f3e to your computer and use it in GitHub Desktop.
"use strict";
(function (app) {
var selectApplicationController = function ($scope,applicationsService) {
$scope.name = "Step 1 - Specify application";
$scope.application={};
applicationsService.getApplications()
.then(function (response) {
$scope.applications = response.data;
}).catch(function (data) {
$scope.applications = null;
});
};
app.controller("selectApplicationController", selectApplicationController);
}(angular.module("sampleApp")));
<div class="row">
<div class="span4">
<label for="Application">Application</label>
</div>
<div class="span8">
<div class="input-control select">
<select ng-model="application" ng-options="application.name for application in applications" />
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment