Angular Meteor SEO - Bind ngApp to <html> element

Hi,

I want to dynamically change the page title of my webapp. The document.title = 'some title'; is not a good approach due to SEO. I read that by adding the ngApp to the <html> element can help in this. Sadly in Meteor I can only add this to the <body> element. This is an issue because of angulars scope system. If the app is only present on the <body>, the <html> element doesn’t have any kind of scope, therefore I can not edit it’s content optimally.

Can someone please help in my issue?

Thank you!

1 Like