This is my first try at getting angularjs to talk to firebase.
I have setup the firebase database in test mode so there is no auth but i keep getting an error
Controller code is
.controller('FaqsCtrl', ['$scope', '$firebaseArray', '$uibModal', function($scope, $firebaseArray, $modal, $filter) {
var ref = firebase.database().ref().child("faq");
$scope.faqs = $firebaseArray(ref);
}])
JS links as follow
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular-route.min.js"></script>
<!-- Firebase -->
<script src="https://www.gstatic.com/firebasejs/5.5.4/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.5.4/firebase-database.js"></script>
<!-- AngularFire -->
<script src="https://cdn.firebase.com/libs/angularfire/2.3.0/angularfire.min.js"></script>
Firebase rules are
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write;
}
}
}
Error is - Error: permission_denied at /faq: Client doesn't have permission to access the desired data.
Everything I have found on the web seems to be for an older version of Firebase