docs(CHANGELOG.md): fix typos for ng-switch-changed workaround

Fix the JavaScript errors in the work-around proposed in 0f806d9 in order to emulate the behaviour
of the removed `change` attribute of ngSwitch.

Closes #9034
This commit is contained in:
Georgios Kalpakas
2014-09-11 22:12:27 +03:00
committed by Caitlin Potter
parent 0eadee5c24
commit 58adaa6634

View File

@@ -136,8 +136,8 @@ Example:
angular.module("switchChangeWorkaround", []).
directive("onSwitchChanged", function() {
return {
linke: function($scope, $attrs) {
$scope.$parent.$eval($attrs.change);
link: function($scope, $element, $attrs) {
$scope.$parent.$eval($attrs.onSwitchChanged);
}
};
});