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: {}       
        }
    });
}());


-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" 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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to