1
I send the title like this:
const routes: Routes = [
Route.withShell([
{
path: 'ex',
component: exemple,
children: [
{
path: '',
component: exComponent,
data: {
title: extract('ex.PAGE_TITLE')
},...
Is there any way to send a text to put in my breadcrumb tbm?
No header ts i do:
import { Title } from '@angular/platform-browser';
....
constructor(
private titleService: Title
) { }
ngOnInit() {
}
get title(): string {
return this.titleService.getTitle();
}
and in header.html:
<ol class="breadcrumb">
<li class="breadcrumb-item">{{title}}</li>
<li class="breadcrumb-item" > <a (click)="add()">{{text}}</a></li>
</ol>
ai would like to send a text to it too, besides the title, to use globally in the project
You could send another parameter besides the
titleinsidedataand read in the same way astitle. Wouldn’t that be your question?– Marcelo Vismari
@Marcelovismari my doubt is how to get hold of this other data
– Maria