@raj_rohan563 wrote:
here is my list page
Job Title
Username
Description
Status
ETA
Updated
Edit/Delete
{{Job.get('Job_Title')}}
{{Job.get('Username')}}
{{Job.get('Description')}}
{{Job.get('Status')}}
{{Job.get('ETA') | date:'MM/dd/yyyy'}}
{{Job.get('updatedAt') | date:'MM/dd/yyyy'}}
</ion-content>
and here is edit page
Edit Job
Update
Login With Google+
Login With Twitter
Login With Facebook
and finally the edit controller is here
angular.module('trivial.controllers')
.controller('EditjobCtrl', function($scope, $stateParams, $timeout, ionicMaterialMotion, ionicMaterialInk,Core) {
$scope.$parent.showHeader();
$scope.$parent.clearFabs();
$scope.isExpanded = true;
$scope.$parent.setExpanded(true);
$scope.$parent.setHeaderFab('right');$timeout(function() { ionicMaterialMotion.fadeSlideIn({ selector: '.animate-fade-slide-in .item' }); }, 200); $scope.editjob = (function() { var Job = Parse.Object.extend("Jobs"); var query = new Parse.Query(Job); query.equalTo("objectId",$stateParams.id); query.find({ success: function(results) { $scope.$apply(function () { $scope.Job = results; });
},
error: function(error) {
alert("Error: " + error.code + " " + error.message);
}
});
});
// Activate ink for controller/* $scope.Jobs=[]; $scope.getJobs = function(params) { var JObsObject = Parse.Object.extend("JobsObject"); var query = new Parse.Query(JobsObject); query.find({ success: function(results) { $scope.Jobs = results; }, error: function(error) { alert("Error: " + error.code + " " + error.message); } });
}
*/})
Posts: 1
Participants: 1