

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
It's an assignment made in Angular for CA3
Typology: Cheat Sheet
1 / 3
This page cannot be seen from the preview
Don't miss anything!
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-ca3', templateUrl: './ca3.component.html', styleUrls: ['./ca3.component.css'] }) export class CA3Component implements OnInit { oNme = ""; oHad = ""; oDrc = ""; formres = ""; // Property Binding
od = "Organization Director"; oh = "Organization Head"; // Class Binding fc = true; mt = true; // ngStyle pad = "5rem"; color = "Cyan"; // Two Way Binding on = "Organization Name" // Event Binding submit = (oName: any, oHead: any, oDirc: any) => { if (oName == "Organization Name" || oHead == "" || oDirc == ""){ this .color = "Red"; this .formres = "Kindly fill all the blanks!"; } else { this .oNme = oName; this .oHad = oHead; this .oDrc = oDirc; this .color = "Green"; this .formres = "Form has been successfully submitted!"; } } contactUs = () => { this .color = "red"; this .formres = "Contact us at +919876543211"; } constructor() { } ngOnInit(): void { } }