Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

There is some way to disabled set of inputs in angular 2?

Tags:

angular

I have some inputs in md-card. there is a way to do like:

 <md-card-content [disabled]="phone._id>

Instead each one? tanks.

like image 550
yantrab Avatar asked Jan 05 '23 14:01

yantrab


1 Answers

Yes, you can create a <fieldset> which, unlike other elements like <form>, accepts [disabled] property.

All these fields that require to be disabled together have to be place inside it, just like in the following example:

<fieldset [disabled]=[true]>
  <input type="text" ...>
  <input ...>
</fieldset>
like image 93
zurfyx Avatar answered Jan 21 '23 16:01

zurfyx