SALESFORCE LIGHTNING EXPRESSION
SALESFORCE LIGHTNING EXPRESSION
So far we have discussed salesforce lightning component composition.
{!<expression>} For Example : {!v.num}
=============================================
As you are familiar with {!v.xxxx} this syntax while creating a lightning component.
RULES FOR USING THE EXPRESSION :
You can only use {!} Syntax in markup languages like HTML, hence in .app and .cmp we are using {!} for expression.
var label = cmp.get("v.label");
=============================================
Above code will get the value present in the label which is a reference to attribute defined in aura component.
Also, you don't have to use {!} while defining the expression in javascript.
Coool !! Now, whenever you use expression while creating the lightning component you will take care of these rules.
WOHOOO !! YOU HAVE JUST COMPLETED LIGHTNING EXPRESSION EPISODE
If you like this salesforcekid learning platform please let me know in the Comment section...Also, Share with your salesforce folks wish you
Happy learning ☁️⚡️ (Learn. Help. Share.)
If you like this salesforcekid learning platform please let me know in the Comment section...Also, Share with your salesforce folks wish you
Happy learning ☁️⚡️ (Learn. Help. Share.)
SALESFORCE LIGHTNING EXPRESSION
Reviewed by
on
Rating:
No comments:
HELP !! SHARE !! SUGGEST !!