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

Enable binding to CSS selectors #13886

Closed
blois opened this issue Oct 8, 2013 · 16 comments
Closed

Enable binding to CSS selectors #13886

blois opened this issue Oct 8, 2013 · 16 comments
Labels
area-pkg P3 A lower priority bug or feature request type-enhancement A request for a change that isn't a bug

Comments

@blois
Copy link
Contributor

blois commented Oct 8, 2013

I see a pattern in polymer.js of:

<foo-model id='foo'></foo-model>
<foo-consumer modelID='foo'></foo-consumer>

Where foo-consumer then resolves '#foo' in the document.

Would be much nicer if the following syntax could be used:

<foo-consumer model='{{$(#foo)}}'></foo-consumer>

And foo-consumer would get change events if that query selector happened to change.

The benefit of this is that foo-consumer can get it's model any way- via bindings, something programmatically setting it, or looking it up in the DOM.

@jmesserly
Copy link

Removed Type-En label.
Added Type-Enhancement, Library-PolymerExpressions labels.

@jmesserly
Copy link

@justinfagnani
Copy link
Contributor

I have some code sitting around that does almost exactly this. It's not integrated into polymer expressions, it just returns streams of elements that enter and exit the query. WIth the streams support in expressions, it might already work. I'll try it out.

@sigmundch
Copy link
Member

Added this to the Later milestone.

@sigmundch
Copy link
Member

Removed this from the Later milestone.
Added this to the M9 milestone.

@clayberg
Copy link

Removed this from the M9 milestone.
Added this to the 1.1 milestone.

@sigmundch
Copy link
Member

Removed this from the 1.1 milestone.
Added this to the 1.2 milestone.

@jmesserly
Copy link

Removed Area-Polymer label.
Added Area-Pkg, Pkg-PolymerExpressions labels.

@jmesserly
Copy link

Removed Library-PolymerExpressions label.

@kasperl
Copy link

kasperl commented Jun 4, 2014

Removed this from the 1.2 milestone.
Added this to the 1.6 milestone.

@sigmundch
Copy link
Member

Removed this from the 1.6 milestone.
Added this to the Later milestone.
Removed Priority-Unassigned label.
Added Priority-Low label.

@sigmundch
Copy link
Member

Added Polymer-P-2 label.

@sigmundch
Copy link
Member

Removed this from the Later milestone.

@sigmundch
Copy link
Member

Removed Polymer-P-2 label.
Added Polymer-Milestone-Later label.

@sigmundch
Copy link
Member

Removed Polymer-Milestone-Later label.
Added PolymerMilestone-Later label.

@DartBot
Copy link

DartBot commented Jun 5, 2015

This issue has been moved to dart-archive/polymer-dart#482.

@DartBot DartBot closed this as completed Jun 5, 2015
@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed triaged labels Mar 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-pkg P3 A lower priority bug or feature request type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

8 participants