- In order to use this component, you simply need to include inside your application, the component is using a sorting pipe and the data is passed to the component from the main component.
- Using the grid component is pretty simple, we start by simply importing it, assuming that all the files are in the same folder, and then use the selector that we chose earlier in our definition .
- In order to make this component reusable regardless of the data, we have to access the property as an array, e.g., a[“param”] or b[“param”] .
- The first component that I really missed was the GridView which I used whenever I simply needed to display some data….
- The control can be modified and customized to add more features (editing, client side filtering, server side filtering, server side sorting and more), in case we want to implement a new server side event (a subject variable needs to be used and can be handled by subscribing to it in the main component).

@FourPeeNo1: “AngularJS2 Grid Component — Auto Generated #programming #angularjs #angularjs2” open tweet »