angular array not outputting in ng-repeat
<p>I have an array called reviews in my app.js file.
I'm trying to output the two hardcoded reviews on the screen, but nothing appears.
The error in the console says that the mainfunction is undefined, but I defined it I though with the correct syntax. Can anyone tell me what's the issue with my code. currently the page is blank and no reviews are outputting to the screen.</p>

<p>app.js</p>

<pre><code> var app = angular.module('myApp', ['ngRoute'])
.config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider){
$routeProvider
.when('/page1', {
templateUrl: 'page1.html'

})
.when('/page2', {
    templateUrl: 'page2.html'

});

$locationProvider.html5Mode({enabled: true, requireBase: false});
app.controller('mainController', function($scope){
$scope.reviews = [
{
    name: 'Joe',
review: "awesome site. Super informative"
},
{
name: 'Bill',
review: "Sweet site dude!"

}
];

});

}]);
</code></pre>

<p>index.html</p>

<pre><code>   &lt;html ng-app="myApp"&gt;
&lt;head&gt;
&lt;link rel="stylesheet" type="text/css" href="app.css"&gt;

&lt;/head&gt;
&lt;body&gt;
&lt;div id="headerBar"&gt;
&lt;a ng-href="/page1" id="page1"&gt;Page 1&lt;/a&gt;
&lt;a ng-href="/page2" id="page2"&gt;Page 2&lt;/a&gt;
&lt;/div&gt;
&lt;div id="templateView" ng-view&gt;&lt;/div&gt;

&lt;div id="reviews" ng-controller="mainController"&gt;
&lt;div id="reviewOutput" ng-repeat="review in reviews"&gt;
    {{review.name}}

&lt;/div&gt;


&lt;/div&gt;
&lt;script src='bower_components/angular/angular.js'&gt;&lt;/script&gt;
&lt;script src="bower_components/angular-route/angular-route.js"&gt;

&lt;/script&gt;
&lt;script src="app.js"&gt;&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Console Error</p>

<pre><code>Error: [ng:areq] Argument 'mainController' is not a function, got undefined
http://errors.angularjs.org/1.5.7/ng/areq?p0=mainController&amp;p1=not%20a%20function%2C%20got%20undefined
    at angular.js:68
    at assertArg (angular.js:1885)
    at assertArgFn (angular.js:1895)
    at $controller (angular.js:10210)
    at setupControllers (angular.js:9331)
    at nodeLinkFn (angular.js:9116)
    at compositeLinkFn (angular.js:8510)
    at compositeLinkFn (angular.js:8513)
    at compositeLinkFn (angular.js:8513)
    at publicLinkFn (angular.js:8390)
</code></pre>