Interpolation of the value as the property Component

Viewed 5090

I have a question about how is the interpolation in the Angular2 done. For example, I have the component X, that have value as @Input(); And in the parent component i have such code:

<X [value]="{{'hello' | translate}} {{ 'world' | translate }}"></X>

But as I can judge such code is wrong. I use ng2-translate for internationalization. Can you provide me withe the links of information, whick can help me?

2 Answers
Related