What is the difference between Call back transclusion function and no call back transclusion function

0 votes
I want to know how clone linking is associated with call back transclusion function?
Feb 5, 2020 in Angular by anonymous
• 37,510 points
104 views

1 answer to this question.

0 votes

Hey,

   There is no difference between clone linking and callback transclusion function.

 when transclusion function using cb (callback) as a parameter then it is called as clone linking or callback transclusion.

Transclusion:( with callback Function):

   It is used when ng-transclude in not an option and have more control on when the transclusion should happen.

  It create Jquery instance when transclusion is invoked (if not created(at least once) earlier).

 Reuse/Applies the exisiting instances,once created

It also create the Transclusion scope.

Transclusion:( with no callback Function):

   It is used when ng-transclude in not an option and have more control on when the transclusion should happen.

  It create Jquery instance when transclusion is invoked (if not created(at least once) earlier).

if created earlier,clones it and applies(Main difference)

It also create the Transclusion scope for every instance/clone(Second difference)

answered Feb 5, 2020 by Niroj
• 82,720 points

Related Questions In Angular

0 votes
1 answer
0 votes
1 answer

What is the difference between Routing using resolve and without using it?

There is not much difference between routing ...READ MORE

answered Feb 10, 2020 in Angular by anonymous
• 82,720 points
102 views
0 votes
1 answer

Explain what is Angular Expression? Explain what is key difference between angular expressions and JavaScript expressions?

Like JavaScript,  Angular expressions are code snippets ...READ MORE

answered Feb 10, 2020 in Angular by Niroj
• 82,720 points
892 views
0 votes
1 answer

What is the service that is used to configure the UI-Router and ngRoute in AngularJs?

Routing comes into play whenever you want ...READ MORE

answered Feb 11, 2020 in Angular by anonymous
• 82,720 points
84 views
+1 vote
1 answer

What is the relationship between angularjs Scope with controller/view?

Let us consider the below block: <div ng-controller="emp"> ...READ MORE

answered Jan 20, 2020 in Web Development by Niroj
• 82,720 points

edited Jan 21, 2020 by Niroj 233 views
+1 vote
1 answer

What is css box module?

Hey, All the element present in html follows ...READ MORE

answered Jan 20, 2020 in Web Development by Niroj
• 82,720 points

edited Jan 21, 2020 by Niroj 261 views
0 votes
3 answers

Explain the difference between visibility:hidden; and display:none?

display:none means that the tag in question will ...READ MORE

answered Dec 13, 2020 in Web Development by Gitika
• 65,870 points
39,470 views
+1 vote
1 answer

How to access the Angularjs scope of a particular html element from our console?

Hello, You should follow the below steps:-- 1.Compile and ...READ MORE

answered Jan 21, 2020 in Web Development by Niroj
• 82,720 points

edited Jan 21, 2020 by Niroj 168 views
0 votes
1 answer
0 votes
1 answer