Closed anjaligithub closed 7 years ago
Hi Anjali,
it seems you missed how angular works. only-valid
attribute gets an angular expression so you need to put your variables there directly, just like you would in common javascript.
<div ion-datetime-picker date ng-model="date" only-valid="{'between': {'initial': date1, 'final': date2}, 'inclusive': true}"></div>
As I am trying to select date from particular Interval of days , It is working with hard coded value to only-valid attribute And not with the value in variable. My code is as follows
woking==>
Not working==>