Skip to content

Commit

Permalink
Merge pull request #85 from superbug/patch-1
Browse files Browse the repository at this point in the history
以个->一个
  • Loading branch information
basecss committed Dec 9, 2013
2 parents a00794c + 26a6631 commit 244fa42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Chapter2.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@

这里, `ng-show``ng-hide`用于处理这些工作. 它们基于传递给它们的表达式提供显示和隐藏的功能. 即, 当你传递的表达式为true时`ng-show`将显示元素, 当为false时则隐藏元素. 当表达式为true时`ng-hide`隐藏元素, 为false时显示元素. 这取决于你使用哪个更能表达的你意图.

这些指令通过适当的设置元素的样式为`display: block`来显示元素, 设置样式为`display: none`来隐藏元素. 让我们看以个正在构建的Death Ray控制板的虚拟的例子:
这些指令通过适当的设置元素的样式为`display: block`来显示元素, 设置样式为`display: none`来隐藏元素. 让我们看一个正在构建的Death Ray控制板的虚拟的例子:
```html
<div ng-controller="DeathrayMenuController">
<p><button ng-click="toggleMenu()">Toggle Menu</button></p>
Expand Down

0 comments on commit 244fa42

Please sign in to comment.