luca February 2016

Form with angularjs doesn't fill all fields

Hi' I'm new in angulajs and I'm using it to create a modal with form inside. In my javascript I receive only two field of my form (name and clientVersion) the other two are obmitted and I don't know why. This is my modal:

<div class="modal" id="addUserModal" data-ng-app="myApp">
    <div class="modal-dialog" data-ng-controller="modalController">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                    aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title">New user</h4>
            </div>
            <div class="modal-body">
                <form novalidate class="simple-form">
                    <!-- form start -->
                    <div class="box-body">
                        <div class="form-group">
                            <label>Name</label> <input id="name" type="text"
                                data-ng-model="newUser.name" class="form-control"
                                maxlength="30" placeholder="Version name" required>
                        </div>
                        <div class="form-group">
                            <label>Role</label> <select class="form-control select2"
                                style="width: 100%;" name="role" data-ng-model="newUser.role"
                                data-ng-options="user.idRole as role.role for role in roles track by role.role">
                            </select>
                        </div>
                        <div class="form-group">
                            <label>Client Version </label> (optional) <select
                                class="form-control select2" style="wid        

Answers


luca February 2016

I updated my question with the answer

Post Status

Asked in February 2016
Viewed 2,628 times
Voted 11
Answered 1 times

Search




Leave an answer