Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

[Expression Syntax] What should named scopes do when the scope *name* is bound to an input value #109

Closed
rafaelw opened this issue Jun 19, 2013 · 3 comments
Labels

Comments

@rafaelw
Copy link
Contributor

rafaelw commented Jun 19, 2013

i.e.

<template repeat="{{ user in users }}">
   <input value="{{ user }}">
</template>

Seems like the two choices are

  1. Up the element position in the iterated Array. This seems scary, as it will destroy the instance and create a new one

  2. Issue a warning.

@arv
Copy link
Contributor

arv commented Jun 20, 2013

If you just think of the user then I think the behavior is that it should update the value in the collection but not recreate the instance. I'm not sure how can implement that though?

@rafaelw
Copy link
Contributor Author

rafaelw commented Jun 20, 2013

Angular can do (1). I'm worried about this, however. I'd like to see how often this comes up and if the workarounds aren't too horrible. Breaking the invariant that template's always create new instances for different model values seems dangerous to me.

@rafaelw
Copy link
Contributor Author

rafaelw commented Nov 28, 2013

Moved to: googlearchive/polymer-expressions#12

@rafaelw rafaelw closed this as completed Nov 28, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants