how to access properties passed to Ember Component inside a component-class?
问题 I have DECLARED an emberjs component in template as: <script type="text/x-handlebars" id="components/custom-component"> <h4>The name of the object passed is : {{object.name}}</h4> {{#if show_details}} <p>The details of the object passed are : {{object.details}}</p> {{/if}} </script> Now I am USING this component in my html template as : <script type="text/x-handlebars" data-template-name="index"> <ul> {{#each object in model}} <li>{{custom-component object=object}}</li> {{/each}} </ul> <