Also tried following without success

app.directive('getLayout', function(SharedData) {
 return {
 restrict: 'A',
                 
link: function(scope, element, attrs) {
     if (window.location.href.indexOf("?Admin") > -1) {
$('.editable').attr('contenteditable','true');
};
    },
        
templateUrl: function() { SharedData.then(function(service) {
                        console.log(service.template) // return good value
return '../../' + service.template + '/layouts/home.html';
        })
    }
        
}
});


-- 
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