diff --git a/docs/content/guide/directive.ngdoc b/docs/content/guide/directive.ngdoc index bdafccf77e68..8a30e6be8245 100644 --- a/docs/content/guide/directive.ngdoc +++ b/docs/content/guide/directive.ngdoc @@ -893,7 +893,7 @@ to which tab is active. restrict: 'E', transclude: true, scope: {}, - controller: function($scope) { + controller: ['$scope', function($scope) { var panes = $scope.panes = []; $scope.select = function(pane) { @@ -909,7 +909,7 @@ to which tab is active. } panes.push(pane); }; - }, + }], templateUrl: 'my-tabs.html' }; })