我是Angular的新手,需要一些项目启动点。如何在背景上通过鼠标单击从ajax数据创建新表格呢?我知道ajax数据具有未知数量的列,并且可能会随时不同。
例如:
the first click on background = table 1, ajax request to /api/table
| A | B | C |
| 1 | 2 | 3 |
| 5 | 7 | 9 |
the second click on background = table 2 and server returns new data from the same url /api/table
| X | Y |
| 5 | 3 |
| 8 | 9 |