The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Sumalokesh (1) [Avatar] Offline
#1
Hello,

I am a newbie to angularJS and I need help with one of the requirements that I have.

I am using MEAN stack with bootstrap for front end coding. I have a subject section which has few sub fields in it.

subject:[{
firstName
lastName
DOB
age
phoneNumber
email
}]

And we can have multiple subject entries..So subject will be like an array of objects. How can I :-
1. Define this in mongoDB.
2. Push data into this angular way
3. Retrieve it and show to the users.

Also subject section has a button and clicking it should open up another section with same set of fields and users can enter multiple subjects.

It should behave like a FormSet.

SUBJECT
0-
firstName
lastName
DOB
age
phoneNumber
1-
firstName
lastName
DOB
age
phoneNumber
2-
firstName
lastName
DOB
age
phoneNumber
email

I would appreciate any help in this regards.

Thanks in advance.

-Suma