修改例如工作正常 - 最初隱藏/顯示做我想要的正好相反? (你好「」)
我需要運行某種on-ready-go()嗎?angularJS隱藏/顯示最初
<!doctype html>
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.13/angular.min.js"></script>
</head>
<body>
<div>
<input type="text" ng-model="yourName" placeholder="Enter your name">
<hr>
<h1 ng-show="yourName == ''">Who ARE you ?</h1>
<h1 ng-hide="yourName == ''">Hello "{{yourName}}"</h1>
</div>
</body>
</html>
你有沒有在控制器初始化'yourName'的東西?還是=未定義? – 2015-02-23 08:55:57
我不能看到任何'NG-app' /'NG-controller'在HTML – 2015-02-23 08:56:52
就在今天,在angularJS開始 - 上面的代碼是所有有.. – T4NK3R 2015-02-23 08:58:59