Hi
Angular i new to me so this might just be a silly beginner mistake.
I have two select that list some users.
<table>
<tr>
<td>From: <select><option ng-model="sourceuser" ng-repeat="systemuser in
systemusers" value="{{systemuser.SystemUserId}}">*{{*systemuser.FullName*}}*
</option></select></td>
<td>To: <select><option ng-model="targetuser" ng-repeat="systemuser in
systemusers" value="{{systemuser.SystemUserId}}">*{{*systemuser.FullName*}}*
</option></select></td>
<td colspan="2"><button ng-click="CopyTeamMemberships(sourceuser,
targetuser)">COPY</button></td>
</tr>
</table>
I have tried to pass the systemuserid to my function. Both as parameters
and usign scope both I always gets that the value is undefined.
$scope.CopyTeamMemberships = function (source, target)
{
alert("From: " + $scope.sourceuser);
alert("To: " + $scope.targetuser);
}
What am I doing wrong?
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" 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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.