mardi 31 octobre 2017

mark more on check box and post it

I would like to mark one or two or all my checkbox and post.

This is my code

<div ng-repeat="person in unassigned">
<div class="col-xs-9 col-sm-12 unassigned">
    <label>
        <input type="checkbox" value=""> 
    </label>
</div>
</div>
<div>
<div type="button" ng-click="assign(person.id)">Save</div>
<div type="button" data-dismiss="modal">Close</div>
</div>

$scope.assignPlayer = function (id) {
    $http.post('api/teams/' + $scope.currentCity + '/person', JSON.stringify({ id: id }))
        .then(function (res) {
            location.reload();
            console.log(res);
        })
        .catch(function (err) {
            console.log(err);
        })
}

Any idea how can I do that

Thank you for help




Aucun commentaire:

Enregistrer un commentaire