Last active
August 29, 2015 14:01
-
-
Save wullemsb/b54e92c32fa27a67e07c 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
"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"))); |
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
<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