From 4c9e0d63ef96a5f5a38cd1130fcfe734d75f57e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Kr=C3=BCger?= Date: Sat, 5 Sep 2015 17:46:44 +0200 Subject: [PATCH] docs(guide/Directives): improved 'docsTabsExample' modified [Creating Directives that Communicate Example](https://docs.angularjs.org/guide/directive#creating-directives-that-communicate) so that it uses [Inline Array Annotation](https://docs.angularjs.org/guide/di#inline-array-annotation) and is compatible with [Using Strict Dependency Injection](https://docs.angularjs.org/guide/di#using-strict-dependency-injection) --- docs/content/guide/directive.ngdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' }; })