Home

Wednesday, 29 June 2016

add static resources in sales-force and used in lightning componenet

Step 1-Login with sales-force and goto Setup and click it.
Step 2-Goto Quick Search box and type static resources 
Step 3-Click on new button After that fill information like as name,description etc. 
Step 4-Click on file and choose resource file.
Step 5-Click save.

Above step store static resource.

Use it in lightning component-
test.cmp.
<component>
<lntg:reuire scripts="{Resource.resourcename}" afterSccriptsLoaded="{!c.methodname}"/> 
</component>

Above way we can add static resource in lightning component

No comments:

Post a Comment