there is a directive:
<div> <form class="form-inline"> <div class="form-group"> <label>Name</label> <input type="text" class="form-control" ng-model="user.name"> </div> <div class="form-group"> <label>Email</label> <input type="email" class="form-control" ng-model="user.email"> </div> <div class="form-group"> <label>Address</label> <input type="email" class="form-control" ng-model="user.address"> </div> <div class="form-group"> <label>Phone</label> <input type="number" class="form-control" ng-model="user.phone"> </div> <div class="form-group"> <label>City</label> <input type="number" class="form-control" ng-model="user.city"> </div> <div class="form-group"> <label>Street</label> <input type="number" class="form-control" ng-model="user.street"> </div> <button type="submit" class="btn btn-default" ng-click="UserListCtrl.addUser();">Create User</button> </form> <table class="table" class="user-list" ng-if="UserListCtrl.users.length"> <caption>Users</caption> <thead> <tr> <th>#</th> <th>Name</th> <th>Email</th> <th>Phone</th> <th>Street</th> <th>Sity</th> <th>State</th> </tr> </thead> <tbody> <user-item ng-repeat="user in UserListCtrl.users" user="user"></user-item> </tbody> </table> </div> There is another directive <user-item ng-repeat="user in UserListCtrl.users" user="user"></user-item>
When a user is added, then from the layout it is clear what should add elements to table> tbody
<tr> <th scope="row">{{ UserItemCtrl.user.index }}</th> <td>{{ UserItemCtrl.user.name }}</td> <td>{{ UserItemCtrl.user.email }}</td> <td>{{ UserItemCtrl.user.phone }}</td> <td>{{ UserItemCtrl.user.street }}</td> <td>{{ UserItemCtrl.user.city }}</td> <td>{{ UserItemCtrl.user.state }}</td> </tr> But when I add angular adds under the form tag instead of table> tbody

<tr user-item ng-repeat="user in UserListCtrl.users" user="user"></tr>- Grundy