Add another custom interpolator in Angularjs
问题 I still want {{1+2}} to be evaluated as normal. But in addition to the normal interpolator, I want to create a custom one that I can program to do whatever I want. e.g. <p>[[welcome_message]]</p> should be a shortcut for <p>{{'welcome_message' | translate}}</p> , or <p translate="welcome_message"></p> . That way, i18n apps would be much more convenient to write. Is anything like that possible? I'm currently going through the angular.js source code, but the interpolation system looks pretty