add warning when component attribute is ignored #975

Closed
moschel opened this Issue May 8, 2014 · 0 comments

Comments

Projects
None yet
2 participants
@moschel
Contributor

moschel commented May 8, 2014

If someone tries to do (thinking "id" will be the new scope property for productId)

<my-thing id='{productId}'></my-tagged>

It will fail silently because id and class can't be used as scope attributes. I've made this mistake and it stumped me for a while. We should add a warning. This was @matthewp 's idea.

@moschel moschel referenced this issue May 8, 2014

Merged

Component warn #976

@ccummings ccummings added this to the 2.1.1 milestone May 16, 2014

@ccummings ccummings closed this in #976 May 16, 2014

gsmeets pushed a commit to gsmeets/canjs that referenced this issue Aug 15, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment