-
Transcluding in Ancient Times: AngularJS
I attempted transcluding in multiple slots before multiple slot transclusion was invented in AngularJS. Weapon of choice: AngularJS 1.3.4. My use case was to create a customizable table that could be reused by changing the table columns and headers. The goal was to keep some functionality and styling throughout the different uses but only change the columns and headers displayed. Available Approaches Use column data as a property passed to the directive. Multiple transclusions – I liked this approach, but AngularJS does not support slotted transclusions until version 1.5, I am using 1.3.4. Create an entirely new custom table directive with Divs and CSS it into looking like a table…