我有一大堆的服務,如: function ServiceA() {}
ServiceA.name = "Service A";
ServiceA.description = "A service called A";
ServiceA.doStuff = new function(inputString){...});
說: 都必須具有相同的屬性設置(名稱,描述) 都有一個名稱相同的方
我嘗試運行一個使用i18next的指令的測試。 我karma.conf.js包含以下路徑: 'bower_components/ng-i18next/dist/ng-i18next.js',
但在測試中我得到 TypeError: 'undefined' is not a function (evaluating '$element.text.bind($element)') 參考: /bow