我已经仔细阅读了关于这个主题的AngularJS文档,然后摆弄了一个指令。这是第一条。
以下是一些相关片段:
超文本标记语言:
<pane bi-title="title" title="{{title}}">{{text}}</pane>
From the pane directive:
scope: { biTitle: '=', title: '@', bar: '=' },
There are several things I don't get:
"{{title}}"
with '@'
and "title"
with '='
?I found another fiddle that shows the expression solution too: http://jsfiddle.net/maxisam/QrCXh/