vitalets / angular-xeditable

Edit in place for AngularJS
http://vitalets.github.io/angular-xeditable
MIT License
1.91k stars 403 forks source link

$compile:ctreq Missing Required Controller #499

Closed Sampath-Lokuge closed 8 years ago

Sampath-Lokuge commented 8 years ago

Hi,

Below mentioned error gives only with the editable-bsdate attribute when I used the e-ng-change="vm.setVendorOrdered($data)".Can you tell me why ?

 <td>
   <span editable-bsdate="vendor.dateOrdered" e-datepicker-popup="MM-dd-yyyy" e-ng-click="vm.open($event,'$data')" e-is-open="vm.opened.$data"
    e-name="dateOrdered" e-form="vendorInformationForm" e-readonly="true"
    e-ng-change="vm.setVendorOrdered($data)" e-required>
     {{ vendor.dateOrdered | date:'MM-dd-yyyy' }}
   </span>
 </td>

Please click the Error image to see the full details :

Run Time Error

Sampath-Lokuge commented 8 years ago

Hi @ckosloski can I have any support for this ? Thanks.

ckosloski commented 8 years ago

Are you using the latest version of xeditable? If so, you need to use $parent.$data to access the data instead of $data

Sampath-Lokuge commented 8 years ago

@ckosloski Nope,I'm using this.Then what should I do ? Thanks.

angular-xeditable - 0.1.12
Edit-in-place for angular.js
Build date: 2016-04-14  
ckosloski commented 8 years ago

Per the change log, the on-change support for bsdate was added in 0.2.0. Try upgrading to the latest version of xeditable.

Sampath-Lokuge commented 8 years ago

@ckosloski Oh..Thanks a lot for the info.If I'll update it to latest version then will I have lot of braking changes on my app ? If so could you tell me where are those places ? Thanks.

ckosloski commented 8 years ago

I don't know of any breaking changes.

Sampath-Lokuge commented 8 years ago

OK sure @ckosloski I'll do that and will let you know if I'll need any further help. Thanks a lot.

Sampath-Lokuge commented 8 years ago

Thanks a lot @ckosloski It is working fine with the latest version :smile: