[AngularJS] Re: #variable not working as epected

2017-01-25 Thread Sean Thomas
Hi Sander Thank you, that is very helpful. Code is now running. The "running" code example I was following had used the "form" variable for both the formGroup and the form itself which tripped me up. Thank you for taking the time to post, this is greatly appreciated. Kind regards Sean On Wednesda

[AngularJS] Re: #variable not working as epected

2017-01-24 Thread Sean Thomas
A step forward. In product-form the statement form.value retrieves the values. However in new-product form.form.value is required. Any idea why? Kind regards Sean On Tuesday, 24 January 2017 23:23:48 UTC+13, Sean Thomas wrote: > > I have two components new-product and product-form.

[AngularJS] #variable not working as epected

2017-01-24 Thread Sean Thomas
I have two components new-product and product-form. In product-form the "form" variable is defined as follows: new-product has product-form nested in it as follows: Save However the form variable passed to save(form) is always "undefined". When I tested the same line of code for the button c