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

Binding to datastore attributes (data-*) within a template #4438

Closed
matsko opened this issue Sep 30, 2015 · 5 comments
Closed

Binding to datastore attributes (data-*) within a template #4438

matsko opened this issue Sep 30, 2015 · 5 comments
Labels
effort2: days feature Issue that requests a new feature

Comments

@matsko
Copy link
Contributor

matsko commented Sep 30, 2015

Currently doing this throws an error:

<div [data-something]="property"></div>

Variations such as data-something="{{ }}" also do not work.

Are there plans to add support for data-* attributes?

@vicb
Copy link
Contributor

vicb commented Sep 30, 2015

see #2719

the consensus there was to have a [data.something]="expr".

@pkozlowski-opensource has the corresponding issue been created ?

@pkozlowski-opensource
Copy link
Member

@vicb nope, sorry, forgotten, creating straight away.

@matsko you are trying to bind to an attribute so you can make it work today by doing [attr.data-foo]="exp"

@pkozlowski-opensource
Copy link
Member

Well, actually, we can keep this issue open - I will just rename it sligtly

@pkozlowski-opensource pkozlowski-opensource changed the title Binding to data-attributes within teh template Binding to datastore attributes (data-*) within a template Oct 1, 2015
@mhevery mhevery added feature Issue that requests a new feature P3: important effort2: days labels Oct 5, 2015
@LaurentGoderre
Copy link

Thanks! That worked great for us!

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
effort2: days feature Issue that requests a new feature
Projects
None yet
Development

No branches or pull requests

6 participants