The forms are building blocks of any web and mobile applications and Angular 5 and 4 provides us two approaches for developing apps(Angular forms) - 1) Template Driven Forms 2) Model Driven/Reactive forms The CSS classes for Angular Control – Just like AngularJs 1.x, Angular automatically shiners many control properties onto the form control element as CSS classes. These Angular classes look like – 1) .ng-valid 2) .ng-invalid 3) .ng-pending 4) .ng-pristine 5) .ng-dirty 6) .ng-untouched 7) .ng-touched The example looks like – .ng-valid[ required ], .ng-valid.required { font-size : 16px ; text-align : center ; bo...
Angular, React, JavaScript, Java, PHP, SQL, C#, Vue, NodeJs, TypeScript and Interview Questions Answers