Implementation of clone linking function and no callback function

0 votes
I want to have the generic implementation of clone linking and no call back function. Thanxx in advanced
Feb 5, 2020 in Angular by kartik
• 37,490 points
89 views

1 answer to this question.

0 votes

Implementation of no callback function:
 

app.directive( "message", function(){

          return{

                  templateUrl: 'info.html',

                  transclude:true, 

                  controller: function($scope, $element, $attribute, $transclude){

                     $element.find(' #innerpannel1').append($transclude)); 

                     $element.find(' #innerpannel2').append($transclude));

                  }


          }

}

Implementation of clone transition:

app.directive( "message", function(){

          return{

                  templateUrl: 'info.html',

                  transclude:true, 

                  controller: function($scope, $element, $attribute, $transclude){

                      $transclude( function(transEl){

                     $element.find(' #innerpannel1').append($transEl); 

                     $element.find(' #innerpannel2').append($transEl));

                       }

                  }


          }

}

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

Related Questions In Angular

0 votes
1 answer

How can we achieve transclusion using link function and directive controller?

Hey, The Term Transclusion means unhidding the context ...READ MORE

answered Feb 5, 2020 in Angular by Niroj
• 82,580 points
213 views
0 votes
1 answer

How do I include a JavaScript script file in Angular and call a function from that script?

Hello @kartik, Refer the scripts inside the angular-cli.json (angular.json when using ...READ MORE

answered Sep 8, 2020 in Angular by Niroj
• 82,580 points
2,037 views
0 votes
1 answer

What is $watch() and it's use in AngularJS?

$watch() function is used to watch the ...READ MORE

answered Feb 3, 2020 in Angular by anonymous
• 82,580 points
266 views
0 votes
1 answer

What are the type of $watch()?

hey kartik, Before you move in to the ...READ MORE

answered Feb 3, 2020 in Angular by Niroj
• 82,580 points
118 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,580 points

edited Jan 21, 2020 by Niroj 206 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,580 points

edited Jan 21, 2020 by Niroj 218 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
26,944 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,580 points

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

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

Hey,    There is no difference between clone linking and ...READ MORE

answered Feb 5, 2020 in Angular by Niroj
• 82,580 points
89 views
0 votes
1 answer

How compile, controller, pre-linking and post linking works in Angularjs?

Explanation of compile and link process don't ...READ MORE

answered Jan 31, 2020 in Angular by Niroj
• 82,580 points
261 views