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));
}
}
}
}