angular.js - angularjs $scope.$parent issue
大家讲道理
大家讲道理 2017-05-15 17:01:38
0
1
619
How to use the scope in a controller in a controller in a modal, how to pass it there, I studied $scope.$parent, but I still don’t understand how to do it
大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
phpcn_u1582

If you use the UI Bootstrap modal, there is a scope parameter, just pass the $scope of the controller directly:

scope (Type: $scope) - The parent scope instance to be used for the
modal's content. Defaults to $rootScope.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template