Primeng: Breadcrumb with routerLink

Created on 15 Feb 2017  路  1Comment  路  Source: primefaces/primeng

Hi,
i searched in examples and in issues, but nothing of similar of my problem.

I want use breadcrumb with routerLink but if I put routerLink (no url) I obtain an error:

EXCEPTION: Error in ./Breadcrumb class Breadcrumb - inline template:7:24 caused by: commands.reduce is not a function
ORIGINAL EXCEPTION: commands.reduce is not a function

Instead, if I use url I obtain a page reload.

Thanks in advance.
Salvo

Most helpful comment

Sorry, but I founded a solution (I hope that the doc become more descriptive in future).

Breadcrumb with url: [{label: 'label', url: 'http://...'}]

Breadcrumb with routerLink: [{label: 'label', routerLink: ['/foo', fooId]}]

Regards

>All comments

Sorry, but I founded a solution (I hope that the doc become more descriptive in future).

Breadcrumb with url: [{label: 'label', url: 'http://...'}]

Breadcrumb with routerLink: [{label: 'label', routerLink: ['/foo', fooId]}]

Regards

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SchneMa picture SchneMa  路  3Comments

mitosandov picture mitosandov  路  3Comments

watalberto picture watalberto  路  3Comments

KannanMuruganmony picture KannanMuruganmony  路  3Comments

jisqaqov picture jisqaqov  路  3Comments