I am new to angular, i have a menu and a container, when the user click the menu item i want the view to change dynamically. I have followed some samples but din't work. Here is my code,
1.Index.html 2.Dashboard.html
HTML:
<ul id="side-menu" class="nav">
<div class="clearfix"></div>
<li class="active" ng-click="template='dashboard.html'"><a href="">
<div class="icon-bg bg-orange"></div>
<span class="menu-title">Dashboards</span>
</a>
</li>
app.js:
var app = angular.module('Digin',[]);
Here is the div:
<div class="page-content" ng-include src="template">
</div>