AngularJS: Watch out for HTML comments in those templates!

One day, using replace:true in your directive configuration might get you a : Error: Template must have exactly one root element. was:<your root element>… error whether you’re providing a template string or loading through templateUrl. I went back and double checked my HTML and it looks like I indeed had only a single root elementContinue reading “AngularJS: Watch out for HTML comments in those templates!”