Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $scope.edit = function(item) {
- $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});
- };
- .state('app.editemployer', {
- url: "/editemployer/:emp/:empname/:empcontact/:companyname/:mobile/:address/:addre/:city/:states/:postcode/:username/:pass/:email",
- views: {
- 'menuContent': {
- templateUrl: "templates/editemployer.html",
- controller: 'editemployersCtrl'
- }
- }
- })
- <form class="form-horizontal" >
- <div class="form-group" >
- <label for="inputEmail" class="control-label col-xs-6">
- EMPLOYER NAME</label>
- <div class="col-xs-6">
- <p class="form-control-static"><input type="text" value="{{name}}" ng-model="data.name"></p>
- </div>
- </div>
- <div class="form-group">
- <label for="inputEmail" class="control-label col-xs-6">EMPLOYER CONTACT</label>
- <div class="col-xs-6">
- <p class="form-control-static"><input type="text" value="{{contact}}" ng-model="data.contact"></p>
- </div>
- </div>
- </form>
- .controller('editemployersCtrl',function($scope,$http,$ionicLoading,$state)
- {
- $scope.emp=$state.params.emp;
- $scope.name =$state.params.empname;
- $scope.contact =$state.params.empcontact;
- $scope.cmpname =$state.params.companyname;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement