Skip to content

Commit b4a2298

Browse files
committed
$scope.menuState变量未初始化
1 parent e5209db commit b4a2298

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)