javascript - AngularJS + AngularFire = How to edit entry -


मेरा $ scope है:

$ scope.current_account_key - मेरे अपडेट मोडल से कुंजी

$ scope.current_account जिसका नाम है: $ scope.current_account.name , और एक विवरण $ scope.current_account.description (खाता मेरी प्रविष्टि है)

मैं इन मानों के साथ फायरबेज में एक एंट्री को अपडेट करना चाहता हूं।

फायरबेज ट्री:

  खातों -JL7e0Obv18-Ls6TTkk8 विवरण का नाम    

आप कर सकते हैं

  var ref = new firebase (fbUrl + '/ accounts')   

); Var खाते = $ फायरबसे (रेफरी); Var बच्चे = खातों। $ बच्चे (कुंजी); // किसी भी मूल्य को बच्चे को सेट करें और // child.name = 'बदल दिया गया नाम' सहेजें; । बच्चे $ बचाने के (); कुंजी); $ Scope.account = $ firebase (रेफरी); // किसी भी मान को खाते में सेट करें और // अकाउंट सहेजें। नाम = 'बदला नाम'; । $ Scope.account $ बचाने के ();

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -