在一個cotroller中的scope如何在modal中的controller中使用,怎麼傳過去,研究了下$scope.$parent,還是沒明白怎麼弄
光阴似箭催人老,日月如移越少年。
如果你用的UI Bootstrap的modal, 有個scope參數,直接把controller的$scope傳進去就行了:
scope (Type: $scope) - The parent scope instance to be used for themodal's content. Defaults to $rootScope.
如果你用的UI Bootstrap的modal, 有個scope參數,直接把controller的$scope傳進去就行了: