Recently I am going through concept of Custom Directives. When I was looking into deep of concepts I found few terminologies like
$compile -> Which traverse through DOM and find its directives $tansclude -> Which is used to load template to another template. Its value is either true or false. Controller -> Which is used to bind the DOM elements to $scope. This works before compilation Link -> Which is used to link or bind data. This is done after DOM compilation.
How these are related to each other. What happens when we set transclude to false or true. When to use controller or link. How compiler is relates these functions. Is there is compulsory on using transclude. What is pre-link and post-link.