Using $compile on external template (templateURL) in Angular directive Using $compile on external template (templateURL) in Angular directive angularjs angularjs