your using the foreach form that takes an object and treats it as a name 
value collection but passing it an array object.
your probably thinking more along this rout
  $scope.sendEmail = function() {
    tmp = '';
    angular.forEach($scope.profile.emails, function( item ) {
      tmp = tmp  + item.id +" ---- ";
    });
    $scope.profile.emailList = tmp;
   
  }

On Monday, March 24, 2014 11:05:37 AM UTC-7, Michel Morelli wrote:
>
> Hi, I have found a solution if you see my plunk, but I have another 
> question:
>
> Why the result is an array of object of array ? 
> I need to write this to access to the data: $scope.profile.emails[0].id[0]
>
> Ok for “emails[0]” (it is logic), but why id[0] ? 
>
> Thanks.
>
> M.
>
> Il giorno 24/mar/2014, alle ore 16:10, Ziobudda 
> <[email protected]<javascript:>> 
> ha scritto:
>
> Hi all, I have this code: 
>
> http://plnkr.co/edit/8mfWiBfU2IGXGIf2WmOK
>
> I need to permit to a user to add more and more email address and then do 
> some works with these email address when user click on the <button>. 
> But I can not understand how to get multiple value of a <input text> in my 
> ng-click function.
>
> In PHP it’s simple because I can set <input type=text name=“email[]”> 
> (note []), but how I can do the same thing in Angularjs ? 
>
> Thanks and sorry for my bad english.
>
> M.
>
> --
> Davide Morelli
> [email protected] <javascript:>
>
>
>
>  
>
> --
> Davide Morelli
> [email protected] <javascript:>
>
>
>
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to