-
Notifications
You must be signed in to change notification settings - Fork 36
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
Add directive to update link tag #18
Conversation
- add new directive - add service to update attribute of element - update example
@khisakuni — I totally missed this, sorry. This looks great! Am I correct in assuming that this would also make #20 possible? Thank you! |
@jvandemo Yeah sounds like this issue is covered by this PR |
@jvandemo ping |
@khisakuni — I'll have a look at this today 👍 |
@khisakuni — I have finally had a chance to look at this. Great work! I have a couple of questions: 1. How can we target different link elements with same
|
@jvandemo Thanks for taking a look! I'll look into the things you mentioned and keep you posted. |
@khisakuni — Thank YOU for making this happen! |
Hi and thanks for your work. I also need need this function, is it possible to merge it into the trunk? |
@rolintoucour — The current status of this PR is not ready to be merged into master yet as @khisakuni is still working on it. If you need the functionality already, you can manually use the code from this PR to create your own custom library. Thanks! |
@jvandemo sorry it took me a while to get around to this. Added support for specifying a link with an <link rel="stylesheet" href="styles1.css" />
<link rel="stylesheet" href="styles2.css" id="foobar" /> and you have <update-link rel="stylesheet" href="styles3.css" id="foobar" ></ update-link> it will query the DOM using the provided This now also supports attributes found here. <update-link rel="test" href="http://example.com" hreflang="es"></ update-link> will update both the Let me know what you think! |
@khisakuni — Fantastic work, this looks great. I will simulate some scenarios to see if the outcome is as expected. Thank you for your efforts! |
@khisakuni — Thank you, this is awesome! One final question before merging: can you write down the pattern that you use to figure out which element to target? Then we can update the documentation to describe how the elements are matched. E.g. does it first try to match all attributes? And then also match on ID? What happens if 2 elements have the same ID but different attributes? It would be great to have a list of all scenario's so we can document everything nicely before merging. Thanks again for your wonderful contribution! |
@jvandemo , @khisakuni there are some news about the status of this PR ? |
@simonepri — We are waiting for @khisakuni to document the targeting pattern before we can merge this PR. Hopefully @khisakuni can chime in. Thank you! |
@simonepri @jvandemo hey sorry guys, been pretty slammed with work. Will try to update tonight. |
@khisakuni — No problem, take your time. We appreciate all the effort you put into this 👍 |
news about this guys? |
Same, any updates? |
@cesarvarela, @alee046 — Unfortunately, this can't be merged without proper documentation. Once the documentation is available, we can test proper behavior and merge if okay. |
@jvandemo Apologies that I've neglected this for a while! I updated the documentation to reflect the changes in this PR. |
@khisakuni — Thank you for your great work, much appreciated! Your changes have been merged and released as v2.0.0. 👍 |
@khisakuni Thank you |
@jvandemo I think you forgot to push it to bower: |
@simonepri — Thank you, great catch. I re-created the tag. Can you please try again and verify if it works as expected? Thank you! |
Update link elements
UpdateLinkDirective
to update linkUpdateAttributeService