I can't seem to get my route running...
If i go to: http://localhost:8000/#/notes, it changes my url to: http://localhost:8000/#!#%2Fnotes. This does not work either: http://localhost:8000/#!#notes.
Running angularjs 1.6 and route 1.6. I'm also using gulp webserver.
routes.js:
angular.module('NoteWrangler').config(function($routeProvider){
$routeProvider.when('/notes', {
templateUrl: '/templates/pages/notes/index.html'
})
});
index.html:
<div class="wrapper">
<div ng-view>
</div>
</div>
<script src="/node_modules/jquery/dist/jquery.js" charset="utf-8"></script>
<script src="/node_modules/angular/angular.js" charset="utf-8"></script>
<script src="/node_modules/angular-route/angular-route.js" charset="utf-8"></script>
<script src="app.js"></script>
<script src="routes.js"></script>
gulpFile.js
var gulp = require('gulp');
var webserver = require('gulp-webserver');
gulp.task('webserver', function() {
gulp.src('./')
.pipe(webserver({
livereload: true,
open: true
}));
});