Skip to content

Commit 3ab2a0b

Browse files
author
basecss
committed
Merge pull request #81 from CodePorter/master
修正 $scope.menuState 变量未初始化错误
2 parents e5209db + b4a2298 commit 3ab2a0b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Chapter2.markdown

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,9 @@
499499
```
500500
```js
501501
function DeathrayMenuController($scope){
502-
$scope.menuState.show = false;
502+
$scope.menuState = {
503+
show: false
504+
};
503505

504506
$scope.toggleMenu = function(){
505507
$scope.menuState.show = !$scope.menuState.show;

0 commit comments

Comments
 (0)