我的問題是我無法弄清楚如何在不引用$ rootScope中的消息的情況下從通道api接收消息。這裏的服務的一個片段: myapp.factory('myService', function($http, $rootScope){
var that = this;
var result;
var onOpened = function(){
console.log("It opene
我有以下服務聲明中獲取數據: app.factory('data', ['$http', function ($http) {
var dataRecords = {};
//Retrieve the entries from the data file and categorize them according
//to the information t