Uncategorized

Day # 14 Connecting our application to a REST API using ngResource

Display images with ng-src :-

Today in the contacts table we will display the image by replacing in the place of Birthday column. In Index.html, we will replace the index with images ng-src.


<!-- trimmed code -->
<td> src="{{person.photo}}" class="img-circle profile-photo"alt=""</td>
<!-- trimmed code -->

We will add the class profile-photo into main.css


.table {

tr {

 td {

 vertical-align: middle;
 .profile-photo {

width: 30px;
height: 30px;

 }

}

}

}

Leave a comment