Skip to main content

Posts

Showing posts from December, 2014

Table row data add and delete using angularjs

          Using angularjs will added list of item from the view into table. Angularjs using user name and department details added into table and unwanted or wrongly entered data was delete functionality implemented. HTML Code <div ng-app="appTable">     <div ng-controller="appController">         <input type="text" ng-model="user.name"/><br/>         <input type="text" ng-model="user.dept"/><br/>         <button ng-click="add()"> Add </button>                 <table>             <th>                 <td>S.No</td>                 <td>Name</td>                 <td>Dept</td>                 <td>Delete</td>             </th>             <tr ng-repeat="employee in employeeList">                 <td>{{$index}}</td>                   <td>{{employee.name}}&