Alexandre,

If it a directive build by yourself? ifo so, it’s really easy.

    app.directive('seSample', [
        function () {

            var DDO = {
                restrict: 'E',
                templateUrl : 'views/template.tpl.html'
            };

            DDO.link = function (scope) {
                scope.getTemplateUrl = function () {
                    return DDO.templateUrl;
                };
            };

            return DDO; // return the Directive Description Object.
        }
    ]);

If it’s not yours, I think it is possible, but a bit more involved.

Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to