java - Angularjs Unified view of two lists -


i'm working in app angularjs , java spring server application.

i got table takes data 2 lists containing objects different correlated:

object in list 1: {id, category_id, unit_cost, qty}, coming db_table1.

object in list 2: {id, category_id, unit_cost, qty}, coming db_table2.

the objects correlated category_id , differ in id , qty. there may cases when given category_id 1 of 2 objects exists.

i want show component rows follow

object_1.id, category_id, unit_cost, obj1.qty, obj1.qty*cost obj2.qty, obj2.qty*cost 

(one row per category_id).

rows must include cases, so:

  • when category there both obj1 , obj2
  • when category there obj1 or obj2

which efficient method of build list ?

  • on client side in component controller
  • on server side, in spring service


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -