Skip to content

Commit

Permalink
docs(guide/Directives): let myTabs directive ctrl use inline array no…
Browse files Browse the repository at this point in the history
…tation

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 angular#12767
  • Loading branch information
s-light authored and Narretz committed Sep 25, 2015
1 parent 6208b76 commit 0df4ff8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/content/guide/directive.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -918,7 +918,7 @@ to which tab is active.
}
panes.push(pane);
};
},
}],
templateUrl: 'my-tabs.html'
};
})
Expand Down

0 comments on commit 0df4ff8

Please sign in to comment.