I'm using angularjs and I have a very basic app...
let app = angular.module('GHoF', [
'ngRoute'
]);
app.config(function Config($routeProvider) {
// Routes
console.log($routeProvider);
$routeProvider
.when('/applications', {
templateUrl: 'app/pages/myApplications/myApplications.html',
controller: 'MyApplicationsCtrl'
})
.otherwise({
redirectTo: 'app/pages/auth.html'
})
});
HTML
<html lang="en" ng-app="GHoF">
<head>
<script src="node_modules/angular/angular.js"></script>
<script src="node_modules/angular-route/angular-route.js"></script>
<script src="app/app.js"></script>
<title>Home</title>
</head>
<body>
<main ng-view></main>
</body>
The problem is that it's redirecting me to the wrong URL.
I don't know why but it appears /#!
in the URL. This is a very basic app...