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

Commit e28171d

Browse files
committed
fix(docs): key-binding used old scope apis
1 parent ce73ed0 commit e28171d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/src/templates/docs.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,9 @@ function DocsController($location, $browser, $window, $cookies) {
100100
// bind escape to hash reset callback
101101
angular.element(window).bind('keydown', function(e) {
102102
if (e.keyCode === 27) {
103-
scope.subpage = false;
104-
scope.$eval();
103+
scope.$apply(function() {
104+
scope.subpage = false;
105+
});
105106
}
106107
});
107108
}

0 commit comments

Comments
 (0)