Use $scope instead of scope in directives

This commit is contained in:
Blade Barringer
2015-08-22 16:59:35 -05:00
parent 5e510aade0
commit 6b7ca3e823
8 changed files with 23 additions and 22 deletions

View File

@@ -9,10 +9,10 @@
function closeMenu() {
return {
restrict: 'A',
link: function(scope, element, attrs) {
link: function($scope, element, attrs) {
element.on('click', function(event) {
scope._expandedMenu = null;
scope.$apply()
$scope._expandedMenu = null;
$scope.$apply()
});
}
}