Skip to content

Commit

Permalink
add dynamic template support for gn-ows-context directive
Browse files Browse the repository at this point in the history
  • Loading branch information
jahow committed Sep 15, 2017
1 parent 4447dc2 commit ef9b380
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -88,8 +88,11 @@
$translate, $rootScope, $http, $q) {
return {
restrict: 'A',
templateUrl: '../../catalog/components/viewer/owscontext/' +
'partials/owscontext.html',
templateUrl: function(elem, attrs) {
return attrs.template ||
'../../catalog/components/viewer/owscontext/' +
'partials/owscontext.html';
},
scope: {
user: '=',
map: '='
Expand Down

0 comments on commit ef9b380

Please sign in to comment.