Inside a directive link function i want to invoke a factory instance, Is it possible
.directive('commentList', function(CommentsService, Global) { return { restrict: 'E', templateUrl: 'xxxx', link: function($scope, element, attrs) {
....I want to invoke a factory from here } }}); .factory('fact'){ }