Expression evaluation does not work in multiple ng-views
I have an evaluation problem with double curly braces. I have several pages organized like this:
index.html: (contains only ng-view)
...
<body>
<div class="view-container">
<div ng-view class="view-frame"></div>
</div>
<script src="../lib/jquery/jquery-1.10.2.js"></script>
<script src="../lib/angular/angular.js"></script>
<script src="../lib/angular/angular-route.js"></script>
<script src="../lib/angular/angular-animate.js"></script>
<script src="../lib/angular/angular-resource.js"></script>
<script src="../assets/js/ui-bootstrap.js"></script>
<script src="../assets/js/bootstrap-transition.js"></script>
...
<script src="../js/app.js"></script>
<script src="../js/services.js"></script>
<script src="../js/controllers.js"></script>
<script src="../js/filters.js"></script>
<script src="../js/directives.js"></script>
</body></html>
login.html:
<div id="bignavbar" class="navbar navbar-banner navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
...
</div> <!-- /container -->
home.html:
<div class="navbar navbar-default navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
...
<li><a href="#/profile">Profile {{ 1 + 1 }}</a></li>
<li><a href="#/help">Help</a></li>
...
</div><!--/.nav-collapse -->
</div>
</div>
</div>
...
Evaluating expressions works fine in login.html, but not on other pages like home.html when I try simple {{1 + 1}}. If I put the home.html code in the login.html file the score works, but if I save the login.html file as home2.html the score doesn't work in home2.html ...
It looks like there is a problem with the html format, but I'm completely lost ...
Do you have any ideas?
0
source to share
No one has answered this question yet
See similar questions:
or similar: