Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Fetched data from parse is not showing in input fields. Please help me

$
0
0

@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'}}

[X]


</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

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>