0

I'm trying to configure the datepicker from angular-ui.bootstrap to have a starting point date when user pops up the datepicker.

I found out this line of code actually works.

$scope.date = new Date(1980-12-12);

It actually put the value at the input-box and also the picker. But I want my input-box to be empty initially. Instead I want the placeholder to be shown.

Md Nazmoon Noor
  • 3,187
  • 1
  • 24
  • 30

2 Answers2

0

Please, try using the placeholder attribute.

Something like this

<input type="text" placeholder="{{date}}" ... />
jorgesuarezch
  • 306
  • 2
  • 5
0

Try to use placeholder attribute.

<input type="text" name="datepicker" placeholder="{{date}}" value="" ... />
narainsagar
  • 1,079
  • 2
  • 13
  • 29