-
Notifications
You must be signed in to change notification settings - Fork 10
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
[Angular 4] - Is this working with Angular Material #2
Comments
Hey Marcelo, Subscriptions are currently done the Angular 4 way, and I believe the rest of the source code should be the same with Angular 4 and Angular 5. Make sure that these pieces of CSS code are loaded on your layout (you can find the complete version on the project readme).
If you have a sample project uploaded, I can have it a look as well if you want :) |
@lmarcelocc I forgot to add rxjs to |
Hey @zurfyx! Thank you for your support. I've tried in a clean project and it works well. Tomorrow will try to find the issue. Thus, let me ask you something. This can work with dynamic sections name and not on the root url? For example, instead of having this:
Having this:
But I will try it again tomorrow. Thank you again ;) |
@lmarcelocc Yes it does work! Remember that variables inside bindings don't carry You can have something like this:
|
Hey zurfyx! How are you? I was trying to fix my code and I'm seeing a problem with Here my code:
The
But with contentsLink it crop to:
without the Meanwhile, let me ask you something, Please let me know if I was not explicity enough. Thank you again :D |
Hey @lmarcelocc !
When it comes to the link it's also better to have it as '#purpose-of-processing', this way it enables browsers scrolling down to that section without further page refreshes as well as transition scrolling with ngx-page-scroll. |
Hey zurfyx, damn, I'm stil not able to make this work. I'm getting the first of the list active, but nothing else works, even the scroll :( Here's the code on pastebin: Thank you! |
A working jsFiddle/jsBin/codepen would make it possible for me to execute and see what your code is actually running. From the pastebin I can notice that you're not binding the href in contentsLink.
should be
Although similar, they are treated differently. Angular will listen to binding changes, but it won't to HTML properties. |
Hi zurfyx, always learning with you :) I've tried with Will add the code to some online tool to share with you :) thanks! |
Hey! I was adding the code to stackblitz and it's working fine. So probably, it could be same issue with some other dependency since on a clean project works fine. Right now I'm blocked and don't know how to go further with this :/ |
Hey @lmarcelocc , you might also want to have a look at the #3 resolution. |
Hello zurfyx, I've the I've tried on the entry component as well but without success. On a new project I can make it work. It's weird :S Thanks. |
Zurfyx, Can I upload my code somewhere for you be able to give it a look? Thanks! |
I'll see what I can do, if the project isn't too big I might be able to have it a look. Otherwise, you will probably know way more than I do about your project. If it worked for you on an empty project, it's probably because some sneaky mistake that's probably hard to spot at a glance. |
Hi zurfyx, I'm not so crazy :D I'm starting the project and it's not that big, but off course that I've just uploaded the minimal code to reproduce the problem :) Here it is: I definitely need to pay you a 🍺 (or other thing if y don't like beer :] ) Thank you so much again for your time and your support! |
Hey @lmarcelocc, Sorry for the delay in the response. I'm having some problems to load your project. Seems like I'm missing all
Something about
and the
You should probably add Also, did you write that boilerplate and |
Hey zurfyx, please do not apologize for the time you took to response, your doing me a big favor :) So, I've fixed all the issues you had setting up the project. I've added the .gitignore I'm using in the project also, it wasn't there and I don't know why! Since I was new to webpack, I tried something that could help me, so I went to this. But yes, one thing that's in my TODO list is to change it to angular-cli, I just need to give a good read at weback documentation, it doesn't seem so hard. Please let me know if you still have any issue. PS: Thank you for the PR advise, but yes this is just a small part of the project, now it should be working fine. Have a nice week :D and thank you! |
Hey @lmarcelocc , good news! The problem relied in Angular Material body container. What The container feature that was released yesterday fixes this by enabling you to customize the container you want to use (instead of the default one, which is either the
When it comes to the Table of Contents not scrolling down, it is pretty much for the same reason, but it is not implemented yet. I will try to have it working by the end of the week. The future syntax will be pretty much the The scrolling library also requires some extra setup. I encourage you to read the new documentation. |
Hey @lmarcelocc, feature is complete and ready to use as of v2.1.0! You can check their documentation and the demo here and here. |
Hey zurfyx. That's great! I will test it soon. Thank you so much! will give you feedback after test it :D |
Hi all,
I've tried to use this on a angular 4.4 project, I get no errors but the table of contents is not updated while I'm scrolling.
I just took the example from https://github.com/zurfyx/angular-contents/blob/master/example/app/app.component.html, and on my app module I've imported
import { ContentsModule } from 'angular-contents';
and added it to the imports array.Anyone can help me please?
Thank you in advance.
Best regards,
Marcelo
The text was updated successfully, but these errors were encountered: