I have the following:
JS
$scope.at = {time:""};
HTML
<input type="time" ng-model="at.time" ng-change="abc()" />
<div>{{ at.time | date: "HH:mm" }}</div>
Here is an example output:
Input: 4:10 PM
DIV: 16:10
My goal is to make the input also show 16:10 or whatever time in military time of whatever is eventually selected. I've tried using ng-change
and while it does change my div
, it does not change the value of my input box.
Any help would be greatly appreciated.