AngularJS error: Template for directive 'XXXXXX' must have exactly one root element
This is a follow-up to this question . I am trying to build and HTML <table> with multiple <tr> rows. I want some of these rows to be rendered by my directive myDirectiveA and others to be rendered by my directive 'myDirectiveB'. Below you can see what my files look like. It all works fine if there is only one <tr> row in the file path/to/myDirectiveA.template.html . But as soon as I add another row in there, I get the following error: `angular.js:13920 Error: [$compile:tplrt] Template for directive 'myDirectiveA' must have exactly one root element. path/to/myDirectiveA.template.html` Ok, so