Is it really how it is done in Angular? Sounds like it would break if I introduce a minification step with name mangling.
Edit: I am not really into Angular so I was surprised to see such reflection on functions. Good to know there are a lot of solutions to that already.