diff --git a/docs/content/guide/directive.ngdoc b/docs/content/guide/directive.ngdoc index c6c8b3dfb5b0..47c38d5fb450 100644 --- a/docs/content/guide/directive.ngdoc +++ b/docs/content/guide/directive.ngdoc @@ -902,7 +902,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) { @@ -918,7 +918,7 @@ to which tab is active. } panes.push(pane); }; - }, + }], templateUrl: 'my-tabs.html' }; })