Infiniti Scroll with firebase and ionic

0

I am here in a tightening, I am using firebase v3.2.1 and trying to implement an infinity Scroll with ionic, the issue is that I do not know how to do it, I searched google and found a firebaseUtils library but it is not compatible with new version of firebase. so I would appreciate it if you could give me a help, because I've been trying to solve this for 3 days. My service is like this.

angular.module('app').factory('artigoService', artigoService);
artigoService.$inject = ['$firebaseObject', '$firebaseArray'];

function artigoService($firebaseObject, $firebaseArray) {

    var rootrEF = firebase.database().ref().child('constituicao');
    var object = $firebaseObject(rootrEF);
    var array = $firebaseArray(rootrEF);

    return {
        getArray: getArray,
        getObject: getObject,
        getAll: getAll,
        getByArtigo: getByArtigo
    }


    function getArray() {

        return array.$loaded();
    }

    function getObject() {

        return object.$loaded();
    }

    function getAll() {
        return object;
    }

    function getByArtigo() {

        var query = rootrEF.orderByChild("artigo").limitToLast(2);
        return $firebaseArray(query);


    }


}
    
asked by anonymous 22.08.2016 / 06:26

1 answer

-2

The ionic we can say is the front of the cord, if you go on the IONIC page you will find your CSS's use will work! ;)

    
10.10.2016 / 15:41