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 I binding data to a.href or other attribute #62

Open
wangkerui opened this issue May 13, 2015 · 1 comment · May be fixed by #63
Open

Can I binding data to a.href or other attribute #62

wangkerui opened this issue May 13, 2015 · 1 comment · May be fixed by #63

Comments

@wangkerui
Copy link

How can I replace text 'link-url' by data-binding?

way.set("link-text", "this is a link");
way.set("link-url", "http://this.is.a.url/");
<a href="link-url" way-data="link-text"></a>

I expects:

<a href="http://this.is.a.url" way-data="link-text">this is a link</a>

but actually it renders

<a href="link-url" way-data="link-text">this is a link</a>
@wangkerui wangkerui linked a pull request May 13, 2015 that will close this issue
@wangkerui
Copy link
Author

see wangkerui@c9caea8

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

Successfully merging a pull request may close this issue.

1 participant