Mobiscroll:无法将时间选择器绑定到范围

Mobiscroll: can't bind the timepicker to the scope

使用“Mobiscroll”库,我无法正确绑定 timepiker 选择。

Plunker

我的代码:

 <div ng-controller="myController">
    {{me}} 
  <input ng-model="me" mobiscroll-instance="timePicker" mobiscroll-time mobiscroll-options="{display: 'modal', theme: 'ios',timeWheels: 'HHii',timeFormat: 'HH:ii',dateFormat: 'HH:ii'}" />

<button ng-click="showTheScroller()">Show</button>




 var myModule = angular.module('myApp', ['mobiscroll-datetime']);

     myModule.controller('myController', ['$scope', function($scope){

       $scope.showTheScroller = function() {
            $scope.timePicker.show();
       };  

 }]); 

我试图将结果绑定到名为 'res' 的范围变量,但我得到一个奇怪的日期。

谢谢 阿维

这是格式问题。你应该试试这个 {{res | date:'short'}} Plunker

仅供参考,这不是一个奇怪的日期。它是 ISO 8601 日期时间格式。