Quantcast
Viewing all articles
Browse latest Browse all 4828

Attribute bindings to child elements of a component

@pavan_kumar_l wrote:

I have a custom text area component which displays remaining character count.

`

  <div class=my-textarea> 
    <textarea>
      {{content}}
   </textarea>
   {{#if isCharLimited}}
     <span> 
       {{remainingCount}} left 
   </span>
  {{/if}}
  </div>

` Since textarea supports readonly and disabled attributes I want to use attribute bindings property to bind my attributes to textarea. How can I achieve this?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles