Closed tradiff closed 9 years ago
+1
Most of the time, my last breadcrumb is something like "Edit" or "Details", which isn't all that helpful in the title tag.
:+1:
We can add a new directive (ncyBreadcrumbText
) rendering the state chain as plain text.
The separator (default: /
) must be a directive option. Usage could be:
<title ncy-breadcrumb-text=">"></title>
@ncuillery I'm working on a pr for this. What about a site prefix or suffix in the title tag? Do you have any preferred syntax for how the site prefix or suffix gets specified in this custom directive? examples:
Sample App: Home / Sample / Rooms / Room 101
or
Home / Sample / Rooms / Room 101 - Sample App
Suggested syntax:
<title ncy-breadcrumb-text="Sample app: {{ncyBreadcrumbLabel}}" ncy-breadcrumb-text-separator=">"></title>
I'm ok for allowing customization of the template. Thanks for the PR, I'll review it very soon !
It would be nice to have a directive which we can use with a title tag, to put the full state chain into the page title. Something like ncy-breadcrumb-last, except it shows the entire state chain separated by a separator string.
Right now, I'm getting by with a custom bit of code: