removing display:none + ng:show from index.html
authorIgor Minar <iiminar@gmail.com>
Fri, 1 Apr 2011 20:48:39 +0000 (13:48 -0700)
committerIgor Minar <iiminar@gmail.com>
Fri, 1 Apr 2011 20:49:45 +0000 (13:49 -0700)
the best practice is not to use angular markup in index.html so
the hide/show thing is not needed.

instead of <div>{{foo}}</div> use <div ng:bind="foo"></div> in
index.html. In other templates it is totally fine to use markup.

app/index.html

index 0b7dfb0..e62bac8 100644 (file)
@@ -5,7 +5,7 @@
   <title>my angular app</title>
   <link rel="stylesheet" href="css/app.css"/>
 </head>
-<body style="display:none" ng:show="true">
+<body>
   <ul class="menu">
     <li><a href="#/view1">view1</a></li>
     <li><a href="#/view2">view2</a></li>