-
Notifications
You must be signed in to change notification settings - Fork 6.8k
docs-bug(Sidenav): stackblitz example not loading #30307
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
Comments
I think we should just remove the router link from the example since it isn't serving any documentation purposes. |
Didn't think it was just that.. amazing. Can I do that with a PR? |
Yep, feel free to send a PR. |
fixes broken example for responsive sidebar which included routerLink directive but is missing router module which prevents sidebar from opening by removing directive as it serve no purpose fixes angular#30307
Fixed by 71865c7 |
fixes broken example for responsive sidebar which included routerLink directive but is missing router module which prevents sidebar from opening by removing directive as it serve no purpose fixes angular#30307
fixes broken example for responsive sidebar which included routerLink directive but is missing router module which prevents sidebar from opening by removing directive as it serve no purpose fixes #30307 Co-authored-by: Naji <[email protected]>
fixes broken example for responsive sidebar which included routerLink directive but is missing router module which prevents sidebar from opening by removing directive as it serve no purpose fixes angular#30307
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Documentation Feedback
Hi!
Context:
I was having a look at Sidenav example page and I stumbled upon this bug while loading the Stackblitz. Basically the example doesn't load the content as it triggers a
Nullinjector
forActivatedRoute
from the console log trace.Proposed solution
After some try I noticed that giving
provideRouter([])
in themain.ts
would fix the problem.From my understanding in angular/components, the setup is provided from this file.
angular/components/.../material.angular.io/src/assets/stack-blitz/src/main.ts
I think this solution might affect also other example environment for stackblitz in general, so I'm asking if this can be achieved this way without messing other things or there are other possible solution that would not affect as much.
This is the first issue I open here and I was wondering if this can be open to contribution also.
Affected documentation page
https://material.angular.io/components/sidenav/overview#creating-a-responsive-layout-for-mobile--desktop
The text was updated successfully, but these errors were encountered: