Question: Hello, I'm working on a page that allow the user to add student name in the textbox and display the name on the table rightaway.

Hello, I'm working on a page that allow the user to add student name in the textbox and display the name on the table rightaway. the user can add up to 3 names. I tried to store in array and display. this page is angular Typescript. NOTE:******Typescript and it not Java Script*******

This is my code

export class names implements OnInit { //the array size is 3 names:any=new Array(3)

ngOnInit():void{

}

//when user click add button addnames(name:string){ this.names.push(name) } }

//HTML file

Student Names

Student name

//when the user type in to textbox I want to display rightawy on the table

Hello, I'm working on a page that allow the user to add

student name in the textbox and display the name on the table

Add Student Names

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!