Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

angular assign class invalid form

// Template
<button [class.my-btn]="myForm.invalid">Home</button>

// Stylesheet
.my-btn { opacity: 50%; }
 
PREVIOUS NEXT
Tagged: #angular #assign #class #invalid #form
ADD COMMENT
Topic
Name
4+7 =