Accessing Ember component scope from block form?
Posted
by
user3009816
on Stack Overflow
See other posts from Stack Overflow
or by user3009816
Published on 2014-05-26T20:32:10Z
Indexed on
2014/05/26
21:26 UTC
Read the original article
Hit count: 117
ember.js
I want to let a user pass a custom text field, App.CustomTextField, in a Ember component using block form. However, that App.CustomTextField needs access to the component to manipulate its properties. How can I pass the component to the textfield using block form? I would like to pass the component as a property to App.CustomTextField, but how do I access the component's scope?
{{#blog-post}}
{{view App.CustomTextField component=?}}
{{/blog-post}}
© Stack Overflow or respective owner