tommaso capelli tommaso capelli - 4 days ago 6
AngularJS Question

Get controller name from $scope

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

Answer

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.

Comments