I'm using ngx-translate 11.x with angular 7 in a huge project.
When use pipe
transform show first empty string And when use directive
, show first path to translate string.
Directive way: <span [translate]="HELLO'"></span>
Pipe way: <span >{{'HELLO'| translate}}</span>
Now, Which performance are better?
There is the official i18n module for performances.
Also with ngx-translate you can write something like this: <span [innerHtml]="'HELLO'" translate></span>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With