I'm from PHP backgroun, and started using Angular recently. I'm using Angular 6 and need help on creating multidimensional array. I tried many ways but not working, so please help.
-
Hi - Welcome to Stack Overflow. If Milind Singh's reply was helpful, please consider "upvoting" it. Otherwise, please post some of the code you've tried - it would definitely help us better understand how best to help you. Thank you in advance...paulsm4– paulsm42018-12-11 08:07:06 +00:00Commented Dec 11, 2018 at 8:07
-
Using reactive form you can create nested array..Take a look at stackblitz.com/edit/angular-1cgvdf If you click on add company and add project you can see the expected result..Maniraj Murugan– Maniraj Murugan2018-12-11 08:07:08 +00:00Commented Dec 11, 2018 at 8:07
-
@granny, Reactive form is part of angular..For creating array structure it helps.. first you need to know about differences between the forms at angular.io/guide/forms-overviewManiraj Murugan– Maniraj Murugan2018-12-11 08:10:14 +00:00Commented Dec 11, 2018 at 8:10
Add a comment
|