From 520c93f625bf3c1b33750dc723f06ef82d428544 Mon Sep 17 00:00:00 2001 From: Georgios Kalpakas Date: Thu, 11 Sep 2014 22:12:27 +0300 Subject: [PATCH] docs(CHANGELOG.md): fix work-around for removed, undocumented `change` attribute of ngSwitch Fix the JavaScript errors in the work-around proposed in 0f806d9 in order to emulate the behaviour of the removed `change` attribute of ngSwitch. --- CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 003a81c8aba..5a0f78e11ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -134,10 +134,10 @@ Example: ```js angular.module("switchChangeWorkaround", []). - directive("onSwitchChanged", function() { + directive("onSwitchChanged", function () { return { - linke: function($scope, $attrs) { - $scope.$parent.$eval($attrs.change); + link: function (scope, elem, attrs) { + scope.$parent.$eval(attrs.onSwitchChanged); } }; });