angular - Angular2 forms - access value in ngIf -


i have a<select #type >. need reference value of select later on in template inside ngif, how can so?

tried *ngif='type.value!="category"' , doesn't seem trick..

could bind select model , reference model element?

<select [(ngmodel)]="type">   <!-- options --> </select> <div *ngif="type !== 'category'"> </div> 

Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -