SyntaxFix
Write A Post
Hire A Developer
Questions
In angular 1.4 +, in addition to adding the dependency
angular.module('myApp', ['ngRoute'])
,we also need to reference the separate angular-route.js file
<script src="angular.js"> <script src="angular-route.js">
see https://docs.angularjs.org/api/ngRoute