Here is the current code that i am using
App.directive('afterRender', ['$timeout', function ($timeout) {
var def = {
restrict: 'A',
terminal: true,
transclude: false,
link: function (scope, element, attrs) {
$timeout(scope.$eval(attrs.afterRender), 0);
}
};
return def;
}]);
and i call it like
after-render="disableFullPage"
Now the problem that i am facing with the current code is that disableFullPage function is being called fine. But angular is not rendering any data. So if i put
{{message}}
that is not being rendered. Also if i remove the after-render, the rendering works fine. Can someone please help me out with what i am doing wrong, also if possible please edit the code above and provide a brief description for my better understanding as i am relatively new to angular.
terminial: true? That is going to disable further evaluation of directives/expressions.