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

Commit 58adaa6

Browse files
gkalpakcaitp
authored andcommitted
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
1 parent 0eadee5 commit 58adaa6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ Example:
136136
angular.module("switchChangeWorkaround", []).
137137
directive("onSwitchChanged", function() {
138138
return {
139-
linke: function($scope, $attrs) {
140-
$scope.$parent.$eval($attrs.change);
139+
link: function($scope, $element, $attrs) {
140+
$scope.$parent.$eval($attrs.onSwitchChanged);
141141
}
142142
};
143143
});

0 commit comments

Comments
 (0)