Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get Breadcrumbs to appear #52

Closed
prindacerk opened this issue Feb 20, 2019 · 2 comments
Closed

Can't get Breadcrumbs to appear #52

prindacerk opened this issue Feb 20, 2019 · 2 comments

Comments

@prindacerk
Copy link

prindacerk commented Feb 20, 2019

I'm at a loss on this. I downloaded the CoreUI Angular Admin panel and ran it in my machine. The breadcrumbs work fine.
Then based on the CoreUI theme, I created my own project and set up breadcrumbs. The project runs fine and all the functionality and component works. But the breadcrumbs are not visible. There's no error message or anything. It is just empty.
When I look at the breadcrumb component template output in the html page, I see the following.
< ol class="breadcrumb"> <!--bindings={ "ng-reflect-ng-for-of": "[object Object],[object Object" }--> <!--bindings={}--> <!--bindings={}--> <!--bindings={}--> </ ol>
Note: I had to put a space on the ol tags to prevent it from auto rendering in the output here.

Then I decided to check if the service is having any issues. I couldn't inject the breadcrumbService into my component. So I just copied the code that's happening within the service's constructor into my component and did a console output of the breadcrumb it builds.
This is the output of the console message.
(3) [{…}, {…}, {…}] 0: {label: {…}, url: "/"} 1: {label: {…}, url: "//"} 2: {label: {…}, url: "///dashboard"}

I can't tell if this is what the breadcrumbs property output from service should look like. If it is, then I can't understand why the component isn't rendering the correct template based on the data. What am I missing? Can someone please enlighten me?

@xidedix
Copy link
Member

xidedix commented Feb 20, 2019

Hi @prindacerk
Do you have data.title and path defined in your routing modules routes configs?

@prindacerk
Copy link
Author

@xidedix You're right. It was the data.title that was missing. I had copied it for some of the routes but not the base routes. And that seemed to have caused some issues.
Looking forward to seeing a more updated documentation for the current CoreUI template. The current documentation is related more towards V1.0 I think. So I couldn't find these guides there.
Appreciate the quick support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants