187
rated 0 times
[
193]
[
6]
/ answers: 1 / hits: 197163
/ 8 Years ago, mon, may 9, 2016, 12:00:00
I want to check if my object is empty dont render my element, and this is my code:
<div class="comeBack_up" *ngIf="previous_info != {}">
<a [routerLink]="['Inside_group_page',{'name':previous_info.path | dotTodash }]">
{{ previous_info.title }}
</a>
</div>
but my code is wrong, what is the best way to do this?
More From » typescript