Vote count:
0
At the top of my page I have
==============================================================================
<html lang="en" data-ng-app="app">
<head>
<style>
/* This helps the ng-show/ng-hide animations start at the right place. */
/* Since Angular has this but needs to load, this gives us the class early. */
.ng-hide {
display: none !important;
}
</style>
============================================================================
Further down in the body I have.
============================================================================
<div class="row row-offcanvas row-offcanvas-left" data-ng-controller="dashboard" data-ng-init="vm=dashboard()">
==================================================
I want to render the following within the body on the start page
==================================================
<span class="bold">{{vm.title}}</span> Messages
==================================================
This is only on the start page. I want to use Angular for binding and not single page. Any ideas. I tried creating a route back to the first page but as you know it caused an infinite loop. I think that ng-init is the way to go but it did not work. Thanks
Aucun commentaire:
Enregistrer un commentaire