HOME.COMPONENT.HTML
{{i}}
x
HOME.COMPONENT.TS
export class HomeComponent implements OnInit {
items = ["angular","react","HTML"]
pushItem = function(value){
this.items.push(value);
}
I am new to Angular
After button clicked values are be listed correctly.
but
I need textbox be empty again.

Mahesh VermaRank #475 · 5.2K reputationPosted May 4, 2018, 12:50 AM EDT
Mahesh VermaRank #475 · 5.2K reputationPosted May 4, 2018, 12:14 AM EDT
Mohan ArumugamRank #5,109 · 311 reputationPosted May 4, 2018, 7:19 PM EDT