Angular Directive with template

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Angular Directive with template

leichtgemerkt
This post has NOT been accepted by the mailing list yet.
I was trying to write a new angular app for owncloud. Can somebody tell me how I can bind a template file to my directive?  I tried every type of url and get forwarded by owncloud. If I try to call the file directly I have //http://localhost/owncloud/apps/dashboard/js/app/directives/activity.html

So in my test owncloud is making this: //http://localhost/owncloud/index.php/apps/dashboard/js/app/directives/activity.html

        .directive('activityList', function(){
                return {
                        templateUrl: 'apps/dashboard/js/app/directives/activity.html',
                        replace: false,
                        transclude: false,
                        restrict: 'A',
                        scope: {
                                ntListdata: "="
                        }
                };
        });