EDITABLE CODE:
LiveDemo:AngularJS Complex Directives : External Template using a Function
Note: There are two div elements, both using seperate templates to display data from same source.