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 VermaPosted May 4, 2018, 4:50 AM
Mohan ArumugamPosted May 4, 2018, 11:19 PM
Mahesh VermaPosted May 4, 2018, 4:14 AM