disable input angular

<input [readonly]="this.isEditable" 
    type="text" 
    formControlName="reporteeName" 
    class="form-control" 
    placeholder="Enter Name" required>

3
4
A. T 100 points

                                    set isDisabled(value: boolean) {
 this._isDisabled = value;
 if(value) {
  this.form.controls['name'].disable();
 } else {
    this.form.controls['name'].enable();
  }
}

3 (4 Votes)
0
3.89
9
Rasul 190 points

                                    &lt;div class=&quot;center-content tp-spce-hdr&quot;&gt;
  &lt;div class=&quot;container&quot;&gt;
    &lt;div class=&quot;row mx-0 mt-4&quot;&gt;
      &lt;div class=&quot;col-12&quot; style=&quot;padding-right: 700px;&quot; &gt;
          &lt;div class=&quot;form-group&quot;&gt;
              &lt;label&gt;Email&lt;/label&gt;
                &lt;input [disabled]=&quot;true&quot; type=&quot;text&quot; id=&quot;email&quot; name=&quot;email&quot; 
                [(ngModel)]=&quot;email&quot; class=&quot;form-control&quot;&gt;
          &lt;/div&gt;
     &lt;/div&gt;
   &lt;/div&gt;
 &lt;/div&gt;

3.89 (9 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
angular form disable input Angular 10: disable field angular disable input field angular form disabled input angular disabled input field [disableControl ] in input angular html inputbox disable in anguler enable/disable form fields on click in angular 8 how to disable input field in angular 9 disable input field in angular disable an input field angular add disabled input angular disable input value in angular angular input box disabled how to disable a form field in angular angular disable text input disable a input angular disable in textbox angular how to disable input in angular how to disable an input in angular disable input text box in angular disable a input field angular disabled input field in angular 8 angular 9 html disabled input disabled input angular 11 how to disable angular input angularjs disable input disabled form input angular disable input field angular 9 disabled input angular in tag input field disabled angular angular disable field disable input in angular 6 disabled input in angular form input field disable in angular disable input angualr input textbox disabled angular disable input html angular disable input field in angular 8 how to disable input field in angular 8 angular 10 disable input angular disable input input disabled dynamically angular [disabled] in angular angular input disabled angular desabilitar input angular disabled angular disable input if variable angular 8 input disabled desable input in angular disable a button angular disable textbox in angular 8 disable input field in angular 7 disable input in angukar disabled angular deshabilitar input angular ngmodel disabled input disabled input angular how to disable the input field in component angular 10 angular material disable input angular 5 disable input disable input dynamically angular disabled input in angular how to disable field in angular how to enable false in input andular disable text input angular angular input disabled with condition angular 2 disable control angular disable [disable] angular angular 10 input disable disable in angular dynamic disabled in angular 8 angular input disabled on condition disabled input field angular disable input field angular angular disabled input input disabled angular how to disable ngmodel value in input box angular 8 disabled attribute on angular disable angular angular input disable disable input in angular disable input angular disable input field angular 6 how to disable input field in angular
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source