mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-18 03:21:08 +00:00
docs(directive): fix transclusion examples
This commit is contained in:
parent
a18926f986
commit
1214084e9d
1 changed files with 8 additions and 8 deletions
|
|
@ -584,10 +584,10 @@ expects as follows:
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
scope: {
|
scope: {
|
||||||
title: 'bind', // set up title to accept data-binding
|
title: 'bind', // set up title to accept data-binding
|
||||||
onOk: 'exp', // create a delegate onOk function
|
onOk: 'expression', // create a delegate onOk function
|
||||||
onCancel: 'exp', // create a delegate onCancel function
|
onCancel: 'expression', // create a delegate onCancel function
|
||||||
show: 'prop' // create a getter/setter function for visibility.
|
show: 'accessor' // create a getter/setter function for visibility.
|
||||||
}
|
}
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
|
@ -618,10 +618,10 @@ Therefore the final directive definition looks something like this:
|
||||||
<pre>
|
<pre>
|
||||||
transclude: true,
|
transclude: true,
|
||||||
scope: {
|
scope: {
|
||||||
title: 'bind', // set up title to accept data-binding
|
title: 'bind', // set up title to accept data-binding
|
||||||
onOk: 'exp', // create a delegate onOk function
|
onOk: 'expression', // create a delegate onOk function
|
||||||
onCancel: 'exp', // create a delegate onCancel function
|
onCancel: 'expression', // create a delegate onCancel function
|
||||||
show: 'prop' // create a getter/setter function for visibility.
|
show: 'accessor' // create a getter/setter function for visibility.
|
||||||
}
|
}
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue