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

Encerrado Postado há 6 anos Pago na entrega
Encerrado Pago na entrega

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 do Projeto: #15776531

Sobre o projeto

9 propostas Projeto remoto Ativo em há 6 anos

9 freelancers estão ofertando em média $31 nesse trabalho

JinMeng08

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

$25 USD em 1 dia
(64 Comentários)
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 Mais

$30 USD in 0 dias
(18 Comentários)
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 Mais

$55 USD em 1 dia
(9 Comentários)
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 Mais

$45 USD em 1 dia
(21 Comentários)
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 em 1 dia
(2 Comentários)
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 Mais

$25 USD em 1 dia
(0 Comentários)
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 em 1 dia
(0 Comentários)
0.0