yunity-archive / ARCHIVED-yunity-webapp-mobile

Mobile webapp
GNU Affero General Public License v3.0
6 stars 1 forks source link

Find out how to set website title #42

Closed copygirl closed 8 years ago

nicksellen commented 8 years ago

You can define a service that depends on the $window service, with a method like:

set(title) {
  $window.document.title = title;
}

No need to mess around with templates or anything :)

copygirl commented 8 years ago

Wouldn't this mess with search providers using <title>?

nicksellen commented 8 years ago

Google runs the javascript like a browser does (as of october last year - see https://webmasters.googleblog.com/2015/10/deprecating-our-ajax-crawling-scheme.html).

https://support.google.com/webmasters/answer/6066468?rd=2 describes their tool which lets you check what the googlebot will see.