I'm setting a code to show image only if data there..i need to hide if value is undefined..help Here...
<div class="column" *ngIf="idvisaurl">
<img width="100" height="100" [src] ="idvisaurl">
<div><h5 style="font:bold">Visa Photo</h5></div>
I'm setting a code to show image only if data there..i need to hide if value is undefined..help Here...
<div class="column" *ngIf="idvisaurl">
<img width="100" height="100" [src] ="idvisaurl">
<div><h5 style="font:bold">Visa Photo</h5></div>
Shared a reference code .... with dummy content
HTML:
<div *ngIf="show != undefined">
"CONTEMNTTT"
</div>
<div *ngIf="notShow != undefined" >
"CONTEMNTTT"
</div>
TS:
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
templateUrl: './app.component.html',
styleUrls: [ './app.component.css' ]
})
export class AppComponent {
show = "show";
notShow
}