答案 0 :(得分:1)
这是一个代价高昂而又愚蠢的错过;主控制器中的注入顺序出错,导致$timeout
注入.controller('demoController',['$mdDialog','$q','$scope','$timeout','$http',
function($mdDialog,$q,$timeout,$scope,$http) {
别名,反之亦然。变化
.controller('demoController', ['$mdDialog', '$q', '$scope', '$timeout', '$http',
function($mdDialog, $q, $scope, $timeout, $http) {
到
net.trainParam.max_fail = 1;