Ionic Creator with Firebase - $save and $remove not working
$10-30 USD
Paguhet në dorëzim
I have a test app created in Ionic Creator
The app is linked up to a Firebase database and I can list some database objects/records.
I have written some code to save/update a record and to also delete/remove a record.
The $save and $remove functions run without error but nothing changes in the Firebase database.
$add works perfectly
I have checked the Firebase rules and both read and write are set to true.
Here is my code for the Firebase service named "Checklist"
[login to view URL]('checklist', ['firebase'])
.service('Checklist', ['$firebaseArray', function($firebaseArray){
var ref = [login to view URL]().ref().child('CheckList');
var items = $firebaseArray(ref);
var checklist = {
'items': items,
addItem: function(name){
items.$add({
name: name,
completed: true
});
},
deleteItem: function(item){
items.$remove(item);
},
setCompleted: function(item, newV){
[login to view URL] = newV;
items.$save(item);
}
}
return checklist;
}]);
Secondly. I need to be able to set an icon image of a list item based on the record's true/false value.
<ion-item class="item-icon-left" ng-repeat="item in items" ng-click="setCompleted({{item}})">
<i class="icon ion-ionic"></i>{{[login to view URL]}}
</ion-item>
We can look at this over Skype or GoToMeeting or I could give you access to my Ionic Creator account.
ID Projekti: #15776531
Rreth projektit
9 profesionistë freelancer dërguan një ofertë mesatare prej $31 për këtë punë
hello sir l'm a web and mobile developer , and i have good experience with mobile development , i will be happy if i can help you with your project , so can you contact me to discuss? thanks Expérience et Compétenc Më shumë
Hi i am interested in your app. Let me know if you have any questions. Stay tuned, I'm still working on this proposal.
We have experts on Ionic framework, firebase, Angular-1,2 and 4 Relevant Skills and Experience Ionic, Firebase, Angular Proposed Milestones $25 USD - Ionic