tommaso capelli tommaso capelli - 1 year ago 78
AngularJS Question

Get controller name from $scope

Is there a way to get the controller name from the current $scope in AngularJS?

Answer Source

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.