Ionic Creator with Firebase - $save and $remove not working

Mbyllur Postuar 6 vite mё parё Paguhet në dorëzim
Mbyllur 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.

AngularJS Ionic Framework Mobile App Development

ID Projekti: #15776531

Rreth projektit

9 propozimet Projekti në distancë Aktiv 6 vite mё parё

9 profesionistë freelancer dërguan një ofertë mesatare prej $31 për këtë punë

JinMeng08

Hi, I can help you. I am ready now! Stay tuned, I'm still working on this proposal.

$25 USD për 1 ditë
(64 Përshtypje)
6.4
kemmanuel

Hi, to do a save or remove you need to get the item thanks to its id and then update the object. I would be glad to implement it for you Relevant Skills and Experience I am a mobile developer with 2 years experience u Më shumë

$30 USD për 0 ditë
(18 Përshtypje)
5.6
Mark98998

Hi, I have gone through your project description and I'm interested to work with you. I'm very passionate about my work and give good quality of work to client. Relevant Skills and Experience I have more than 5+ year Më shumë

$55 USD për 1 ditë
(9 Përshtypje)
4.8
scriptmane

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ë

$45 USD për 1 ditë
(21 Përshtypje)
5.0
potenttechno

Hi i am interested in your app. Let me know if you have any questions. Stay tuned, I'm still working on this proposal.

$20 USD për 1 ditë
(2 Përshtypje)
0.8
Muazim95

hello , i looked at your instruction for this project and i'm interested with that . based on the experience working my company that i'm handle this for part time job . if you need me just contact me Relevant Skills Më shumë

$25 USD për 1 ditë
(0 Përshtypje)
0.0
datotahost

We have experts on Ionic framework, firebase, Angular-1,2 and 4 Relevant Skills and Experience Ionic, Firebase, Angular Proposed Milestones $25 USD - Ionic

$25 USD për 1 ditë
(0 Përshtypje)
0.0