From 6f63d708a002d8a55c9662a28c78138ce44b7018 Mon Sep 17 00:00:00 2001 From: Robert Messerle Date: Tue, 7 Jul 2015 15:00:14 -0700 Subject: [PATCH] fix(tabs): reduces the number of watchers by using bind-once syntax for non-changing items Related to #3272 --- src/components/tabs/js/tabsDirective.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/components/tabs/js/tabsDirective.js b/src/components/tabs/js/tabsDirective.js index 250ae573e97..04561845ad5 100644 --- a/src/components/tabs/js/tabsDirective.js +++ b/src/components/tabs/js/tabsDirective.js @@ -137,7 +137,7 @@ function MdTabs ($mdTheming, $mdUtil, $compile) { style="max-width: {{ tabWidth ? tabWidth + \'px\' : \'none\' }}"\ ng-repeat="tab in $mdTabsCtrl.tabs"\ role="tab"\ - aria-controls="tab-content-{{tab.id}}"\ + aria-controls="tab-content-{{::tab.id}}"\ aria-selected="{{tab.isActive()}}"\ aria-disabled="{{tab.scope.disabled || \'false\'}}"\ ng-click="$mdTabsCtrl.select(tab.getIndex())"\ @@ -149,32 +149,32 @@ function MdTabs ($mdTheming, $mdUtil, $compile) { ng-disabled="tab.scope.disabled"\ md-swipe-left="$mdTabsCtrl.nextPage()"\ md-swipe-right="$mdTabsCtrl.previousPage()"\ - md-template="tab.label"\ - md-scope="tab.parent">\ + md-template="::tab.label"\ + md-scope="::tab.parent">\ \ \
\ \ + md-template="::tab.label"\ + md-scope="::tab.parent">\
\ \ \ \ \ \ \ \