我是新來的Angular js.我看到了類似的問題,但我不明白這一點。 我有2個控制器從另一個控制器重新加載一個控制器Angular js
userControllers.controller('RatingCtrl', function($scope,$http,$rootScope,$route)
userControllers.controller('otherProfileCtrl', function ($scope, $routeParams, $rootScope, $http, $location, $window, $timeout,$uibModal, $compile)
RatingCtrl和otherProfileCtrl,這兩個模塊是相互關聯的。我需要的是,我從otherProfileCtrl使用$route.reload();
。就是有沒有辦法做到這一點沒有uisng服務重裝RatingCtrl?plz幫助
你爲什麼不想使用服務? – Guillaume
我認爲這很難。如果只有通過服務纔可能,我可以試試這種方式 – sulu666