mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
docs(directive): old syntax
This commit is contained in:
parent
1104c7d75b
commit
cffa015554
1 changed files with 4 additions and 4 deletions
|
|
@ -591,10 +591,10 @@ Therefore the final directive definition looks something like this:
|
|||
<pre>
|
||||
transclude: true,
|
||||
scope: {
|
||||
title: 'bind', // set up title to accept data-binding
|
||||
onOk: 'expression', // create a delegate onOk function
|
||||
onCancel: 'expression', // create a delegate onCancel function
|
||||
show: 'accessor' // create a getter/setter function for visibility.
|
||||
title: '=', // set up title to accept data-binding
|
||||
onOk: '&', // create a delegate onOk function
|
||||
onCancel: '&', // create a delegate onCancel function
|
||||
show: '='
|
||||
}
|
||||
</pre>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue