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