bd00b9a967
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.
23 lines
557 B
HTML
23 lines
557 B
HTML
<!doctype html>
|
|
<html xmlns:ng="http://angularjs.org/">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>my angular app</title>
|
|
<link rel="stylesheet" href="css/app.css"/>
|
|
</head>
|
|
<body>
|
|
<ul class="menu">
|
|
<li><a href="#/view1">view1</a></li>
|
|
<li><a href="#/view2">view2</a></li>
|
|
</ul>
|
|
|
|
<ng:view></ng:view>
|
|
|
|
<script src="lib/angular/angular.js" ng:autobind></script>
|
|
<script src="js/services.js"></script>
|
|
<script src="js/controllers.js"></script>
|
|
<script src="js/filters.js"></script>
|
|
<script src="js/widgets.js"></script>
|
|
</body>
|
|
</html>
|