Advertisement
Guest User

Untitled

a guest
Jul 12th, 2016
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. $scope.edit = function(item) {
  2. $state.go('app.editemployer',{emp : item.emp_id,empname: item.emp_name,empcontact: item.emp_contact,companyname: item.comp_name,mobile: item.mobile,address: item.address1,addre: item.address2,city: item.city,states: item.state,postcode: item.zipcode,username: item.username,pass: item.password,email: item.emailid});
  3. };
  4.  
  5. .state('app.editemployer', {
  6. url: "/editemployer/:emp/:empname/:empcontact/:companyname/:mobile/:address/:addre/:city/:states/:postcode/:username/:pass/:email",
  7. views: {
  8. 'menuContent': {
  9. templateUrl: "templates/editemployer.html",
  10. controller: 'editemployersCtrl'
  11. }
  12. }
  13. })
  14.  
  15. <form class="form-horizontal" >
  16. <div class="form-group" >
  17. <label for="inputEmail" class="control-label col-xs-6">
  18. EMPLOYER NAME</label>
  19. <div class="col-xs-6">
  20. <p class="form-control-static"><input type="text" value="{{name}}" ng-model="data.name"></p>
  21. </div>
  22. </div>
  23. <div class="form-group">
  24. <label for="inputEmail" class="control-label col-xs-6">EMPLOYER CONTACT</label>
  25. <div class="col-xs-6">
  26. <p class="form-control-static"><input type="text" value="{{contact}}" ng-model="data.contact"></p>
  27. </div>
  28. </div>
  29. </form>
  30.  
  31. .controller('editemployersCtrl',function($scope,$http,$ionicLoading,$state)
  32. {
  33. $scope.emp=$state.params.emp;
  34. $scope.name =$state.params.empname;
  35. $scope.contact =$state.params.empcontact;
  36. $scope.cmpname =$state.params.companyname;
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement