【发布时间】:2017-04-29 12:53:15
【问题描述】:
我有一个对 Firebase 的获取请求。网络响应为 101。chrome 开发工具中的时间选项卡显示“未完成”。框架选项卡显示数据已被检索,但是,由于请求尚未完成,数据显然无法使用?
对 Firebase 的待处理请求的可能原因是什么?
var app = angular.module("myApp", ["firebase"]);
app.controller("budgetCtrl", function($scope, $firebaseObject) {
var ref = firebase.database().ref().child("budget");
$scope.data = $firebaseObject(ref);
});
<body ng-app="App" ng-controller="budgetCtrl">
<li ng-repeat="dat in data">
<span>{{dat.amount}}</span>
</li>
来自 Mac Air、El Capitan、Chrome 浏览器、服务器:localhost
【问题讨论】:
标签: angularjs http firebase websocket firebase-realtime-database