Home and About page have simple heading content which is not showing when running the page. Instead it is showing:
Error: $injector:modulerr
Module Error".
How do I fix this?
var app = angular.module('myApp', ['ngRoute']);
app.config(function ($routeProvider) {
$routeProvider.
.when('/', {
templateUrl : 'partial/home.html',
})
.when('/about', {
templateUrl: 'partial/about.html',
})
otherwise({ redirectTo: '/'})
});
<div class="container">
<div>
<nav>
<a href="#/">Home</a>
<a href="#/about">About</a>
</nav>
</div>
</div>