I'm currently working on creating a contact list with two different views. One view displays all the contacts and includes an option to add a new contact, which is represented by a button rather than a space to input information directly. The other view appears when I click on the plus sign, providing a field to enter new contact information.
My goal is to use Angular to update an array with the new contact details after entering them into the field. I expect that since I'm not refreshing the page, the array should automatically include the newly added contact. However, this isn't happening for some reason. Can anyone shed some light on why this might be?
Update: The issue was resolved by using a factory! Thank you all for your help.