I'm encountering an issue with my angularjs application where the tr and td tags are mysteriously disappearing.
angular.module('transcludeExample', [])
.directive('pane', function() {
return {
restrict: 'E',
transclude: true,
scope: {
title: '@'
},
replace: true,
template: '<table><tbody ng-transclude></tbody></table>'
};
})
.controller('ExampleController', ['$scope', function($scope) {}]);
td {
background: red;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.7.8/angular.min.js"></script>
<div ng-controller="ExampleController">
pre
<pane>
<tr>
<td><strong>testtest</strong></td>
</tr>
</pane>
post
</div>