mercredi 5 août 2015

Send multiple chekbox items to Angular Controller


I'm trying to make a view wich allow me to send invitation via email to google contacts using google contacts api & javascript

for (var index = 0; index < result.length ; index++){
  var name= result[index];
  $(".email").append('<div><span class="part left">'+result[index]+'</span><span class="part right">


What i need is to send the values of the selected checkboxs to angular controller

in my controller when i var_dump the ng-model it always says undefined. Any suggestions ?

 var emails = [];
  emails.push(checkboxModel.name);
  $scope.data = emails;
  console.log(emails);



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire