AngularJS supports multi-element directive with -start and -end postfix. The official documentation only mentions ng-repeat-start and ng-repeat-end. Do other built-in directives support this?
For example, this works fine:
<tbody>
<tr ng-controller="myController">
<td>{{firstName}}</td>
<td>{{lastName}}</td>
</tr>
</tbody>
Both {{firstName}} and {{lastName}} are replaced with their proper value.
But this only works partially:
<tbody>
<tr ng-controller-start="myController">
<td>{{firstName}}</td>
</tr>
<tr ng-controller-end>
<td>{{lastName}}</td>
</tr>
</tbody>
{{firstName}} is properly replaced. But {{lastName}} is empty.
Since {{firstName}} works, seems ng-controller-start is recognized by AngularJS. Is it a bug, or I'm doing it wrong, that {{lastName}} is not working?
Update
If ng-controller-start and ng-controller-end is not officially supported. How do I make ng-controller to span multiple elements? Can I use comment-style directive? If yes, how?
ng-repeat: code.angularjs.org/1.2.21/docs/api/ng/directive/ngRepeatng-controller-end, AngularJS throws an exception saying "no matching ng-controller-end found for ng-controller-start", so it definitely understandsng-controller-start.ngControlleris kinda strange.