on-internet
← Community

How to make breadcrumb on Angular 6

Stack Overflow ·

I try to make breadcrumb with Angular 6. Texts work but links doesn't work correctly. I want to do this. Home > Dashboard > Statistical ( It Works.) Home -> xxx.com (It works.) Dashborad -> xxx.com/dashboard (It works.) Statistical -> xxx.com/statistical (It doesn't work.) So, if it is subcomponent links don't work. It needs to be xxx.com/dashboard/statistical (Correct) How can i do this ? breadcrumb.component.ts import { Component, OnInit } from '@angular/core'; import { Location } from '@angular/common'; import { Router } from '@angular/router'; @Component({ selector: 'app-breadcrumb', templ

Comments

Sign in or sign up to comment and upvote.

No comments yet.