Misko Hevery c3a41ff9fe feat($compile): simplify isolate scope bindings
Changed the isolate scope binding options to:
  - @attr - attribute binding (including interpolation)
  - =model - by-directional model binding
  - &expr - expression execution binding

This change simplifies the terminology as well as
number of choices available to the developer. It
also supports local name aliasing from the parent.

BREAKING CHANGE: isolate scope bindings definition has changed and
the inject option for the directive controller injection was removed.

To migrate the code follow the example below:

Before:

scope: {
  myAttr: 'attribute',
  myBind: 'bind',
  myExpression: 'expression',
  myEval: 'evaluate',
  myAccessor: 'accessor'
}

After:

scope: {
  myAttr: '@',
  myBind: '@',
  myExpression: '&',
  // myEval - usually not useful, but in cases where the expression is assignable, you can use '='
  myAccessor: '=' // in directive's template change myAccessor() to myAccessor
}

The removed `inject` wasn't generaly useful for directives so there should be no code using it.
2012-06-08 15:50:13 -07:00
2012-03-28 11:24:47 -07:00
2012-05-24 13:48:31 -07:00
2010-10-29 10:47:06 -07:00
2012-01-10 22:27:00 -08:00
2010-10-29 10:47:06 -07:00
2011-10-11 10:53:07 -07:00
2012-06-02 16:02:07 -07:00
2010-07-09 14:45:29 -07:00
2012-04-20 11:29:34 -07:00
2010-11-12 16:13:53 -08:00

AngularJS

Compiling

rake compile

Running Tests

./server.sh                          # start the server
open http://localhost:9876/capture   # capture browser
./test.sh                            # run all unit tests
Description
No description provided
Readme MIT 63 MiB
Languages
JavaScript 98.8%
HTML 0.6%
Shell 0.4%
PHP 0.1%