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>

2 Answers 2

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>
0

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .