Quantcast
Viewing all articles
Browse latest Browse all 4829

Pass readonly / copy of a property to a component

@pavan_kumar_l wrote:

I have a avatar component which accepts avatar url and also supports new avatar upload. I also observe the url property to reflect any changes. The url for avatar comes from user model. Now if I update url property inside component (eg: data uri of cropped image) attribute of model is also updating with the value. I want to pass copy of the property to component so that I can safely use the same url to store temporary states.

{{#avatar url=model.avatar canedit=true}}
{{/avatar}}

Posts: 5

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 4829

Trending Articles