Since angular 2 i18n is not yet ready most ppl build it themselves. So do I. I know there's a package on Github but I rather wait until the Framework comes up with something nice or maybe I'll even help. But for now:
What has a bigger impact on the performance of a big angular 2 application?
<p [innerHTML]="l["textKey1"]"></p>
or
<p>{{l["textKey1"]}}</p>
or
<p>{{l.textKey1}}</p>
I know the 2nd and 3rd one cause 2 way binding, while the first one is single direction. I'm sure that makes for a performance increase but does the innerHTML affect it in a bad way again? If not, could we write a directive that then looks like this:
<p [lang]="l.textKey1"></p>
Has anyone made experiments on this before?