I'm trying to display response of firebase realtime database to HTML page with AngularJS as follow {{ pps }}.
Controller.js
firebase.database().ref('/activeUsers/9791009080').once('value').then(function(snapshot) {
$scope.pps = (snapshot.val() && snapshot.val().msisdn) || 'Anonymous';
console.log($scope.pps);
});
index.html
<h1>{{ pps }}</h1>
Problem is frontend HTML value is not reflected when I've found value inside console.log Please let me know what I've missed above code.