javascript

  • If the accordian is clicked then the children rows of that row should be displayed by reading the data from one more different JSON.
  • There will be a table of rows created which reads data from JSON. Say there are 6 rows displayed.
  • And a class for child rows that you can set another styles for them.
  • But the challenge I am facing is how to link child rows to the existing rows dynamically when clicked.
  • Each row has an accordion(+ symbol) in its first td.

There will be a table of rows created which reads data from JSON. Say there are 6 rows displayed.But in real time number rows will vary.

@HTMLAtSo: angularjs – how to add a row dynamically when clicked on parent row

I am new to angularjs and stuck with the below problem.

There will be a table of rows created which reads data from JSON. Say there are 6 rows displayed.But in real time number rows will vary.

Each row has an accordion(+ symbol) in its first td. If this accordian is clicked then the children rows of that row should be displayed by reading the data from one more different JSON.

Similarly for the remaining 5 rows as well it should display the children rows for the respective row’s accordion is clicked.

javascript