Catfish Catfish - 1 year ago 85
Javascript Question

Angularjs Multiple directives [gridsection, gridsection] asking for template on: <div gridsection="">

I'm receiving the error:

Multiple directives [gridsection, gridsection] asking for templateon : <div gridsection="">
with this code.

I don't see how i'm using nested directives or what is causing this.

html page

<div gridsection ></div>


angular.module('web').directive('gridsection', function() {
return {
restrict: 'A',
replace: false,

scope: {
patient: "=patient"
templateUrl: 'directive/section.html',
link: function(scope, element, attrs, fn) {




Answer Source

It seems like you are declaring the gridsection multiple times in your angular code.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download