Is there a way to get the controller name from the current $scope in AngularJS?
No, it is not possible. What if $scope belongs to directive? There is no property that can retrieve information about the controller the scope belongs to.
$scope
1.4m articles
1.4m replys
5 comments
57.0k users