I already got and display the current time using angularjs. What I want to know is how can I pass this value into the dropdown? thanks
<div class="container-fluid main_content">
<div class="col-sm-12 col-xs-12 title_box">
<h4 class="subject_title">System Time</h4>
<div class="" align="left" >
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.9/angular.min.js"></script>
<script type="text/javascript">
var mymodal = angular.module('mymodal', []);
mymodal.controller('Ctrl2', ['$scope', function ($scope) {
$scope.format1 = 'M/d/yy ';
$scope.format = 'h:mm:ss a ';
$scope.format2 = 'Z ';
}]);
my whole code is on this plunker file : http://plnkr.co/edit/fnqEG1jfwTWe1MNIXKDz?p=preview
i hope someone can help me