diff options
| author | Matthew Windwer | 2013-07-02 15:14:24 -0400 |
|---|---|---|
| committer | Brian Ford | 2013-08-07 13:59:41 -0700 |
| commit | 4407e81c618d42c70e8cfca4f52dfc4a669b5c68 (patch) | |
| tree | 874f1ea121c0d3ecdd1bd5165114e868ea45b165 /src/ng/directive/ngCloak.js | |
| parent | ad76e77fce09d0aee28b5ca1a328d5df8596b935 (diff) | |
| download | angular.js-4407e81c618d42c70e8cfca4f52dfc4a669b5c68.tar.bz2 | |
feat(ngForm): Supports expression in form names
<form name="ctrl.form"> form controller will accessible
as $scope.ctrl.form instead of $scope['ctrl.form']
BREAKING CHANGE:
If you have form names that will evaluate as an expression:
<form name="ctrl.form">
And if you are accessing the form from your controller:
Before:
function($scope) {
$scope['ctrl.form'] // form controller instance
}
After:
function($scope) {
$scope.ctrl.form // form controller instance
}
This makes it possible to access a form from a controller
using the new "controller as" syntax. Supporting the previous
behavior offers no benefit.
Diffstat (limited to 'src/ng/directive/ngCloak.js')
0 files changed, 0 insertions, 0 deletions
