AngularJS: 'Template for directive must have exactly one root element' when using 'th' tag in directive template

后端 未结 12 1193
梦如初夏
梦如初夏 2020-12-30 19:50

I\'m trying to implement custom sortBy directive in order to make columns in html table sortable.

HTML:


   
            


        
12条回答
  •  一整个雨季
    2020-12-30 20:21

    Which version of angular are you using ?

    There was a bug for something looking like your problem that was fixed in 1.2.13 1.3 Beta 1 commit link

    https://github.com/angular/angular.js/issues/1459

提交回复
热议问题