I have searched and experimented and nothing seems to work the way I want it to. If anyone has any suggestions please post any ideas.
So this is how I want it to work.
var myfunc = function(args) {
var result = null;
result = __myservice.$loaded().then(function(data) {
return data;
});
return result;
}
This returns NULL every time if anyone knows how to do this please let me know.
edit:(added service/factory code)
this is using angularfire seed fyi with most of the code unchanged so the fbutil is the one from angularseed which I believe has the Auth built in as well.
app.factory('circlesList', ['fbutil', '$firebaseArray', function(fbutil, $firebaseArray) {
var ref = fbutil.ref('circles');
return $firebaseArray(ref);
}]);