The directive simply hangs the entire site .. because of the nested directive call .. resolve this issue,, i a, abl
Here is my use case ..
Directive definition is given by:
app.directive('bluet', function($rootScope,$compile) {
return {
scope: {},
restrict: 'E',
replace: true,
controller: function($scope, $element, $attrs, $parse, $timeout,$transclude) {
$scope.val1;
},
templateUrl:"partials/bluetTemplate.html",
link: function(scope, element, attrs) {
attrs.$observe('val1', function(value) {
if(value && value != undefined) {
scope.val1 = value;
}
});
}
}
and the calling html looks like ...
<bluet val1="{{ val1 +'1' }}"></bluet>
the ng-template for partials/bluetTemplate.html would look something like :
<div>
<span ng-if="val1=='111'">
<bluet val1="{{ val1 +'1' }}" ><bluet>
<!-- nested call -->
</span>
<span>
{{val1}}
</span>
</div>