0

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.

3

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.