Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 6b24837

Browse files
committed
perf(ngModel): change ng-model/form controllers to use prototype methods
BREAKING CHANGE: The use of prototype methods instead of new methods per instance removes the ability to pass NgModelController and FormController methods without context. For example `$scope.$watch("something", myNgModelCtrl.$render)` will no longer work because the `$render` method is passed without any context. This must now be replace with `$scope.$watch("something", function() { myNgModelCtrl.$render(); })` or possibly by using `Function.prototype.bind` or `angular.bind`.
1 parent e3a378e commit 6b24837

File tree

2 files changed

+424
-398
lines changed

2 files changed

+424
-398
lines changed

0 commit comments

Comments
 (0)