function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ankit SatnalikaAnkit Satnalika 

Lightning Attributes

Can anybody tell me about below lightning attributes:
1. !
2. #
Also if possible shre the link to know more about the same.
Best Answer chosen by Ankit Satnalika
Maharajan CMaharajan C
Hi Ankit,

Bound Expression: Bound Expression is represented as {!v.str}. Whenever the value of the string is changed, this expression will reflect the change and also affect the components where it is used, we can say the value change dynamically through this expression.

Unbound Expression: Unbound Expression is represented as {#v.str}. Whenever the value of the string is changed, this expression will not reflect the change, we can say the value remains static through this expression.

https://wedgecommerce.com/bound-and-unbound-expressions-lightning-components/
https://balkishankachawa.wordpress.com/tag/bound-unbound-expressions/

Can you please Let me know if it helps or not!!!

If it helps don't forget to mark this as a best answer!!!


Thanks,
Maharajan.C

All Answers

Maharajan CMaharajan C
Hi Ankit,

Bound Expression: Bound Expression is represented as {!v.str}. Whenever the value of the string is changed, this expression will reflect the change and also affect the components where it is used, we can say the value change dynamically through this expression.

Unbound Expression: Unbound Expression is represented as {#v.str}. Whenever the value of the string is changed, this expression will not reflect the change, we can say the value remains static through this expression.

https://wedgecommerce.com/bound-and-unbound-expressions-lightning-components/
https://balkishankachawa.wordpress.com/tag/bound-unbound-expressions/

Can you please Let me know if it helps or not!!!

If it helps don't forget to mark this as a best answer!!!


Thanks,
Maharajan.C
This was selected as the best answer
Ankit SatnalikaAnkit Satnalika
Thanks Maharajan :)