This video tutorial explains how to make use of Factory Function in the SAP UI5 Framework
In Aggregation binding, the template that is provided for the binding is replicated for all the items. If you find a specific scenario where you need to have a different template for different items then you can make use of factory function.
I am an SAP Netweaver Certified developer associate. I work in UI5 , Fiori, ABAP and HANA topics. I do freelance projects and also takes training in SAP UI5 and ABAP. For Training/ Freelance requirements reach out to me through Contact page