Change Meta Tags dynamically angular

2

I'm trying to change the content of the meta tag Keyword dynamically. I have:

<meta name="keywords" id="selKeyword" content="">

and I'm doing it as follows:

$("meta[name='keywords']").attr("content", "hello");

I put a display in the meta keywords and saw that the hello has been set, but when I go to view source code I see that the content is still blank.

Is there any way around this?

EDIT: I did not have to do this in my project any more, but in none of the answers did I get the solution done. But I no longer need it. Thanks to all who helped me

    
asked by anonymous 04.04.2016 / 21:11

1 answer

0

The only crawler that interprets JS before capturing the meta tags is Google's - and even then there is no guarantee that your javascript content will be run .

An output may be the interpretation of server-side content prior to issuance to the browser, however the implementation will depend on your server platform.

    
04.04.2016 / 21:51