Created
April 5, 2020 08:32
-
-
Save arun12209/5db0738a035596be6e0f780b24a8e83a to your computer and use it in GitHub Desktop.
Covid19_News
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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