kimroen / ember-cli-document-title

Adding document title behaviour to your ember app
MIT License
216 stars 61 forks source link

Also pass tokens to setTitle #64

Open vihai opened 6 years ago

vihai commented 6 years ago

Hello,

It could be quite useful to have access to the whole list of token in the router's setTitle method in order to make them accessible to a template, in order to output a structured breadcrumb.

      // Stubbable fn that sets document.title
-      this.router.setTitle(finalTitle);
+      this.router.setTitle(finalTitle, tokens);