Skip to content

Instantly share code, notes, and snippets.

@arun12209
Created April 5, 2020 08:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arun12209/5db0738a035596be6e0f780b24a8e83a to your computer and use it in GitHub Desktop.
Save arun12209/5db0738a035596be6e0f780b24a8e83a to your computer and use it in GitHub Desktop.
Covid19_News
<aura:component controller="Covid19_IND_TrackerController" access="global">
<aura:attribute name="newsData" type="Object"/>
<aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
<div class="slds-grid">
<div class="slds-col slds-size--12-of-12">
<div aura:id="new_content" style="padding:20px;">
<aura:iteration items="{!v.newsData}" var="news" >
<div class="contain" >
<a href="{!news.url}" id="link" target="_blank">
<span id="title" style="font-size:25px;"><b>{!news.title}</b></span>
</a><br/>
<span style="color:blue; font-size:14px;">Source : {!news.source.name}, Author : {!news.author}<br/></span>
<span id="desc" style="font-size:20px;">{!news.description}</span><br/>
<a href="{!news.url}" id="link" target="_blank">
<img src="{!news.urlToImage}" id="image" style="width:1000px; height:600px;"/>
</a> <br/><br/>
</div>
<br/>
</aura:iteration>
</div>
</div>
</div>
</aura:component>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment