In the file dialog box, navigate to the folder where you generated the application. Remove Duplicates value from Array using AngularJS -angularjs . Use setAttribute () Method to add the readonly attribute to the form input field using JavaScript. Below is the command to create a new Angular project: ng new angular-checkboxes-example. Property Purpose; enabled: The component can be restricted on a page, by setting enabled value as false which will disable the component completely from all user interactions including in form post action. Type: Feature Request. It seems that you can conditionally apply readonly mode to your form controls (at least for mat-input ones). You can build forms by writing templates using Angular template syntax and directives with the form-specific directives and techniques described in this tutorial, or you can use a reactive (or model-driven) approach to build forms.. Template-driven forms are suitable for small or simple forms, while The :read-only pseudo-class is used to remove all the styling that makes the inputs look like clickable fields, making them look more like read-only paragraphs.The :read-write pseudo-class on the other hand is used to provide some nicer styling to the editable