1

I am trying this

<aura:component >
<img src="resource/1484736455000/lightning_vip__Icon_one" height="30" width="30"/>
   <aura:attribute name="expense" type="Expense__c"/>
</aura:component>
6

Here's the documentation about the use of static resources.

As you can see, you can call your resource like this:

<aura:component >
<img src="{!$Resource.Icon_one}" height="30" width="30"/>
   <aura:attribute name="expense" type="Expense__c"/>
</aura:component>
| improve this answer | |
0

Write src="{!$Resource.Icon_one}" instead

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.