How to programatically get the name from an alias of a AngularJS controllerAs syntax?
MyController as mine
How I get the mine
variable?
To be clear, I have MyController
with multiple usages:
MyController as use1
MyController as use2
How inside MyController I get the use1
or the use2