removing display:none + ng:show from index.html
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.
This commit is contained in:
parent
d671a5519b
commit
bd00b9a967
@ -5,7 +5,7 @@
|
|||||||
<title>my angular app</title>
|
<title>my angular app</title>
|
||||||
<link rel="stylesheet" href="css/app.css"/>
|
<link rel="stylesheet" href="css/app.css"/>
|
||||||
</head>
|
</head>
|
||||||
<body style="display:none" ng:show="true">
|
<body>
|
||||||
<ul class="menu">
|
<ul class="menu">
|
||||||
<li><a href="#/view1">view1</a></li>
|
<li><a href="#/view1">view1</a></li>
|
||||||
<li><a href="#/view2">view2</a></li>
|
<li><a href="#/view2">view2</a></li>
|
||||||
|
Reference in New Issue
Block a user