Store data into firebase

plzz any one help me to insert and reterive the data into the firebase database


Here you are an example:

$ = {
    'message': ''

  var ref = firebase.database().ref().child("messages");
  $scope.messages = $firebaseArray(ref);
  $scope.addMessage = function() {
      text: $
    $ = '';

is it posible to insert and reterive the phone contacts name and number into our firebase database
thank you for reply


I didn’t try contact plugin, but i think you can do that.
Code for that will be the same with some corrections.