I am a beginner in Angular and I am attempting to streamline the process of creating tables with CRUD functionality for work.
For instance:
Here is an example declaration:
<custom-table datasource="persons" headers="headers">
<custom-column header="header1" display-member=""/>
<custom-column header="header2" display-member=""/>
</custom-table>
In this case, my custom-table directive returns a table element. The issue I am facing is that I need to access ALL columns to properly create both the header and body of the table, but I am unsure how to retrieve the columns passed as content within the directive... (I am aiming to minimize the use of jQuery as much as possible)
So far, I have only been able to read each column individually, but this approach does not allow me to construct the table correctly. My goal is to gather all column declarations, generate the table header, and utilize ng-repeat for the body.