【发布时间】:2018-05-09 13:39:59
【问题描述】:
所以我需要在AngularJS的同一个组件上显示多个SQL查询的结果。
我该怎么做?到目前为止,我了解到组件只能处理一个 http 请求,如下所示:
'use strict';
angular.module('cryostat', []).component('cryostat', {
templateUrl: 'cryostat/cryostat.template.html',
controller: function cryostatController($http) {
this.pageTitle = "NP04 Cryostat"
this.natalie = 1;
$http.get("cryostat.conn.php")
.then(function (response) {this.TT0101 = response.data.records;});
}
});
【问题讨论】:
-
你用多个请求填充了什么?
标签: sql angularjs oracle webpage