@@ -587,15 +587,15 @@ want to reuse throughout your app.
587
587
In this example we will build a directive that displays the current time.
588
588
Once a second, it updates the DOM to reflect the current time.
589
589
590
- Directives that want to modify the DOM typically use the `link` option.
591
- `link` takes a function with the following signature, `function link(scope, element, attrs, controller) { ... }`
592
- where:
590
+ Directives that want to modify the DOM typically use the `link` option, which is documented on the {@link ng.$compile `$compile` API} page.
591
+ `link` takes a function with the following signature, `function link(scope, element, attrs, controller, transcludeFn) { ... }`, where:
593
592
594
593
* `scope` is an Angular scope object.
595
594
* `element` is the jqLite-wrapped element that this directive matches.
596
595
* `attrs` is a hash object with key-value pairs of normalized attribute names and their
597
596
corresponding attribute values.
598
- * `controller` is the controller for the directive, if defined
597
+ * `controller` is the controller for the directive, if defined.
598
+ * `transcludeFn` is a transclude linking function pre-bound to the correct translusion scope.
599
599
600
600
In our `link` function, we want to update the displayed time once a second, or whenever a user
601
601
changes the time formatting string that our directive binds to. We will use the `$interval` service
@@ -998,7 +998,7 @@ angular.module('docsTabsExample', [])
998
998
scope: {
999
999
title: '@'
1000
1000
},
1001
- link: function(scope, element, attrs, controllers) {
1001
+ link: function(scope, element, attrs, controllers, transcludeFn ) {
1002
1002
var tabsCtrl = controllers[0],
1003
1003
modelCtrl = controllers[1];
1004
1004
0 commit comments