EDITABLE CODE:
LiveDemo:AngularJS Complex Directives : Using an External Templates
Note: The example is same as the last example, but the template file is external.