This is part of my template:
<!-- This is the one I want! -->
<label>{{l10n('hallo') | translate}}</label>
If my Component has a function l10n its no problem to call the l10n-function
<label>{{cmp.l10n('hallo') | translate}}</label>
But that's not what I want - if possible I want l10n(<string>)
, somehow a global function for this template...
In AngularJS to achieve something linke this they add a function to the Controller-Scope: https://stackoverflow.com/a/12466994/504184
My problem here is that I don't have a Controller - I'm in a Component...
Second thing is that the Scope in AngularDart is quite different compared to the Scope in AngularJS...