Home AngularJS SPA page title
Reply: 0

AngularJS SPA page title

Agha
1#
Agha Published in 2017-12-07 16:05:44Z

I am developing a website(SPA) in AngularJS.

I set page titles dynamically:

<title>{{ pageTitle }}</title>

for each page I have unique page titles which should be generated base on user input.

everything works fine and I have read that there is no SEO problem with this method. but the problem is that in browsers Bookmark tab, I see "{{ pageTitle }}" instead on the title of the website. I know that it's because of the browsers behavior but is there a way to fix it?

one solution that came in my mind is to use the following code instead:

<title ng-bind="pageTitle">My actual website title</title>

how good is this?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.328246 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO