0

I have my code as below

Inside controller :

 $scope.starttime = '10:00';

Inside html

<div  layout="column" style="margin-left: 177px">
                          <mdp-time-picker aria-label="{{starttime}}" ng-
      model="starttime" ng-disabled="disabled"></mdp-time-picker>

 </div>

Althought, in HTMl i can view {{starttime}} displaying 10:00, why its not attaching to mdp-time-picker ?

Vivek Doshi
  • 56,649
  • 12
  • 110
  • 122
CodeWithCoffee
  • 1,896
  • 2
  • 14
  • 36

1 Answers1

0

It should have proper time format,

  $scope.starttime  = new Date();   

DEMO

Sajeetharan
  • 216,225
  • 63
  • 350
  • 396