Custom Angular Directive Causing Page Load Issues

10 views
Skip to first unread message

Rose Hulman

unread,
Jan 17, 2018, 9:53:16 PM1/17/18
to Angular and AngularJS discussion

I've created a custom Angular directive, as an element and added it within a page, but when the page loads it loads/renders in everything up to and including the custom directive (which is a piece of navigation) and doesn't render anything else on the page. There are no JavaScript errors in the console either. Any suggestions?

(function(){

var mainApp = angular.module('mainApp', []);

    mainApp.directive('flyoutNav', function(){
    
        return {
            restrict: 'E',
            replace: false,
            templateUrl: '/render/file.act?path=/assets/templates/flyout-nav-template.html',
            scope: {}       
        }
    });
}());


Tito

unread,
Jan 17, 2018, 11:45:46 PM1/17/18
to Angular and AngularJS discussion
is render the root folder?

in my case this is folder structure
app/
   vmrequest
      

app/vmrequest/vmrequest.myrequests.html
Reply all
Reply to author
Forward
0 new messages