angular - ngif how to give multiple conditions -


this html file

<div class="conform">      <button (click)="clicked(i)" class="btn btn-primary">join ride</button>      <div  class="dialogboxstyle" *ngif="showindex===i">          <p>your pickup time:</p>          <p>8:30am </p>          <p>             <button (click)="cancel()">cancel</button>              <button>confirm</button>          </p>      </div>  </div> 

this component .ts file

public showdialog:boolean = false; public showindex:number;  clicked(i:any) {     this.showdialog = true;     this.showindex = i; } 

by default when page loaded popup in open stage need hidden stage unless until click it. tried using

ngif="showindex === && showdialog" 

but not working.


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -