Button to add a new form and a new Angularjs field

Asked

Viewed 467 times

1

I need to make a form of questions and answers, basically, as follows:

  • Should allow adding several questions, each with at least 2 answers, where one of them should be marked as correct;
  • Delete answers and questions, when deleting a question the answers should be deleted.
  • Allow editing both questions and answers at any time;

I thought to do as follows: When the user wants to add a new question, there will be a button that when he clicks, adds a new form, and there, the question and the answers are created. And inside the form, next to the input, another button that when clicked, adds a new response option.

I need to do with Angular. I would like to know how I do this scheme of buttons

Thank you in advance!

  • And what have you tried so far? Some code to share?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.