Part of the problem with your code is that Angular-Strap does not use data-date-*
attributes, it uses data-*
, which is unfortunately not well documented at the moment (if at all).
Another problem is that the start-date
and end-date
attributes normally work (when using only Bootstrap datepicker without Angular-Strap) by entering in a static date such as data-date-start-date="2013-09-03"
. Angular-Strap works the same way as many other Angular directives by letting you use the attribute like you normally would without Angular, but allowing you to use an Angular expression by using double curly brackets.
Eg ng-href="http://www.waddup.com/items/{{ item.number }}"
Your pseudo-code should end up being something like this:
//child pseudo-code
<input
data-end-date="{{ parent.target_date}}"
data-ng-model="child.target_date"
bs-datepicker
/>
//parent pseudo-code
<input
data-start-date="{{ highestChild.target_date }}"
data-ng-model="parent.target_date"
bs-datepicker
/>