tommaso capelli tommaso capelli - 10 months ago 72
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.