From 0df4ff800a234ca3b3f533d03ac49c1b8fb9ca61 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): let myTabs directive ctrl use inline array notation modified `docsTabsExample` myTabs directive ctrl at [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) Closes #12767 --- 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 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' }; })