Search code examples
angularjsangular-translate

Angular translate on head description or keywords


Someone succeed to put angular translation on head meta ?

I've tried that but without success

<meta name="keywords" content="{{ 'head.keywords' | translate }}"/>
<meta name="description" content="{{ 'head.title' | translate }}"/>
<title translate="head.title">Title</title>

Just the title works...

Thanks for your help


Solution

  • Just found the solution :

    <meta name="keywords" translate translate-attr-content="head.keywords" />
    <meta name="description" translate translate-attr-content="head.description"/>