When should I use transclude: \'true\' and when transclude: \'element\' ?
I cant find anything about transclude: \'element\' in the an
When set to true, the directive will delete the original content, but make it available for reinsertion within your template through a directive called ng-transclude.
appModule.directive('directiveName', function() {
return {
template: 'Hello there ',
transclude: true
};
});
world
browser render: “Hello there world.”