angular.js/test/ng/directive
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
..
aSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
booleanAttrsSpec.js fix(ngSrc,ngHref): binding should set element prop as well as attr 2012-05-06 23:01:33 -07:00
formSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
inputSpec.js feat($compile): simplify isolate scope bindings 2012-06-08 15:50:13 -07:00
ngBindSpec.js chore(ngSanitize): extract $sanitize, ngBindHtml, linkyFilter into a module 2012-04-11 15:50:47 -07:00
ngClassSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngClickSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngCloakSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngControllerSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngCspSpec.js feat($parse): CSP compatibility 2012-04-27 23:04:24 -07:00
ngEventDirsSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngIncludeSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngInitSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngNonBindableSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngPluralizeSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngRepeatSpec.js fix(ngRepeat): expose $first, $middle and $last instead of $position 2012-05-22 14:18:15 -07:00
ngShowHideSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngStyleSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngSwitchSpec.js chore(tests): rename all directive names to the normalized form 2012-04-09 11:48:54 -07:00
ngViewSpec.js feat($route): rename template -> tempalteUrl and add support for inline templates 2012-06-01 17:01:10 -07:00
scriptSpec.js fix(script): Incorrectly reading script text on ie 2012-04-20 11:29:34 -07:00
selectSpec.js fix(select): don't interfere with selection if not databound 2012-05-02 14:24:43 -07:00
styleSpec.js chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00