Feat main app component form
Continued implementation of https://gitlab.com/LibreFoodPantry/modules/visitmodule-tp/updateguest/Plan/-/issues/41 for the main app component.
This branch fixes previous issues with the form buttons (this changes the way the form submits and may possibly effect the functionality of the other component's implementations). It also adds tests for the buttons to make sure they call the correct methods in the component class.
Resources used:
- https://angular.io/api/forms/FormGroupDirective
- https://docs.angularjs.org/api/ng/directive/ngSubmit (and other docs on this site such as ngClick).
- https://angular.io/guide/testing#component-class-testing
- https://www.youtube.com/watch?v=nofXAkAz05Q&feature=youtu.be&t=551
- https://medium.com/@tomastrajan/angular-reactive-sub-forms-type-safe-without-duplication-dbd24225e1e8
- Kyle's Angular testing project
Edited by Chris Radkowski