AngularJS Route (simple)
embedded template
by Anov Siradj
HTML
<script type="text/ng-template" id="embeded.tpl.html">
embeded template
</script>
<div ng-controller="MyCtrl">
<ul>
<li><a href="#/link">change route</a></li>
</ul>
<div ng-view></div>
</div>
JavaScript
var myApp = angular.module('myApp', []);
myApp.controller('MyCtrl', function($scope) {});
myApp.config(function($routeProvider) {
$routeProvider.when('/link', {
controller: 'MyCtrl',
templateUrl: 'embeded.tpl.html'
});
});