I'm creating lightning component to display data in nice format in a table. But data is not coming in table format.
Below is my code:
Component:
<aura:component controller="ContactsController">
<ltng:require styles="{!$Resource.SLDS090}"/>
<head>
<title>This will display contacts whose's birthday is today.</title>
</head>
<aura:attribute name="contacts" type="List" />
<aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
<!-- <div class="container">-->
<div class="slds">
<table class="slds-table slds-table--bordered slds-table--striped">
<thead>
<tr>
<th scope="col"><span class="slds-truncate">Date</span></th>
<th scope="col"><span class="slds-truncate">Contact Name</span></th>
</tr>
</thead>
<tbody>
<aura:iteration items="{!v.contacts}" var="contact">
<tr>
<td>{!contact.Birthdate}</td>
<td>{!contact.Name}</td>
</tr>
</aura:iteration>
</tbody>
</table>
</div>
</aura:component>
Below is my result: