javascript - CGI Response and AngularJS ng-model -


i have problem getting equivalent timezone assigned in model. in question below, value of model timesetting.timezone 34 cgi response. how call respective timezone value assigned 34 in dropdown list value displayed in input box? there immes associated plunker in answer part of other question.

  <body ng-controller="mainctrl">   <select class="select len_lg"  ng-model="timezone">     <option value="1">(gmt-12:00) international data line west; </option>     <option value="2">(gmt-11:00) utc-11; </option>     <option value="3">(gmt-11:00) samoa;</option>     <option value="4">(gmt-10:00) hawaii;</option>     <option value="5">(gmt-09:00) alaska; </option>     <option value="6">(gmt-08:00) baja california;</option>     <option value="34">(gmt-08:00) pacific time (us &amp; canada);</option>   </select>   timezone: {{timezone}} </body>  <script>var app = angular.module('plunker', []);  app.controller('mainctrl', function($scope) {   $scope.timezone = '34'; }); </script> 

how select data dropdown list equivalent ng-model in angularjs


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -