Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4840

Keeps what is yielded for later use in a component

$
0
0

@GCorbel wrote:

Hi,

I'm contributing to https://github.com/piceaTech/ember-rapid-forms and I want to do something like this :

{{#em-custom-input label="example"}}
   Something
{{/em-custom-input}}

This will produce "Something" with a label. If I simply use yield in templates, I have to change this template and this other one and probably some others. This is a big change and I want to know if there is a way to keep the value that have to be yielded in a variable in the component for a later use?

Is it possible?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4840

Trending Articles