tommaso capelli tommaso capelli - 1 year ago 89
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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download