How can replace the {{eachTab.tabName}}
with ng-bind
in the following code?
<tabset>
<tab ng-repeat="eachTab in rowTabs" heading="{{eachTab.tabName}}"
select="createRecsforeachTab(dSet, eachTab)">
</tab>
</tabset>
How can replace the {{eachTab.tabName}}
with ng-bind
in the following code?
<tabset>
<tab ng-repeat="eachTab in rowTabs" heading="{{eachTab.tabName}}"
select="createRecsforeachTab(dSet, eachTab)">
</tab>
</tabset>
Try moving the ng-repeat into the tabset scope like so:
<tabset ng-repeat="eachTab in rowTabs">
<tab heading="{{eachTab.tabName}}" ng-bind-html="{{eachTab.tabName}}" select="createRecsforeachTab(dSet, eachTab)"> </tab>
</tabset>
You have answered! ngBind
The following code is from this post by @badsyntax
angular.module("template/tabs/tab.html").run(["$templateCache", function($templateCache) {
$templateCache.put("template/tabs/tab.html",
"<li ng-class=\"{active: active, disabled: disabled}\">\n" +
" <a ng-click=\"select()\" tab-heading-transclude ng-bind-html=\"heading\"></a>\n" +
"</li>\n" +
"");
}]);