A $scope.$eval() is being done with the value of the menu-toggle attr. So, it should receive an angular expression, not a raw string.