I am trying to create a checkbox directive with angularjs.The code is here in JSFIDDLE
It works fine only with ng-model and text.
But if i add ng-true-value and ng-false value, it throw error as
nged2angular.js:12520 Error: [ngModel:constexpr] Expected constant expression for `ngTrueValue`, but saw `bindedTrueValue`.
Also i need to take the ng-change controller function inside the directive.
Aucun commentaire:
Enregistrer un commentaire