'Pushing multiple input variables into an array in Angular
I am trying to take input from the users (name, submission date, semester and message) save it in an array then print multiple entries with all the information on the same component page.
This is my .ts code. I can't figure out why I'm getting an error when I am passing in this.nameModel. It works when I only pass in one parameter (this.nameModel) and I have the listOfValues array empty. I would appreciate some help. I just want to get the .ts file to work and I think I can figure out how to display it all on the HTML page. Thanks for the help!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
