My url is localhost/kaiweb/#!/ I want to remove that "#!" or whatever might cause this. Another example localhost/kaiweb/#!/minust - it stays in between and don't look pretty.
<li><a id="mainBtn" href="#!/" ng-class="{activeSmall:part == 'index'}" >Avaleht</a></li>
<li><a id="aboutBtn" href="#!/minust" ng-class="{activeSmall:part == 'minust'}">Minust</a></li>
<li><a id="workBtn" href="#!/portfoolio" ng-class="{activeSmall:part == 'portfoolio'}" >Portfoolio</a></li>
<li><a id="vouchBtn" href="#!/teenused" ng-class="{activeSmall:part == 'teenused'}" >Teenused</a></li>
AngularApp
'use strict';
var app = angular.module('kaidoweb', []).
config(['$routeProvider', function ($routeProvider) {
$routeProvider.
when('/', {
templateUrl: 'pages/index.html',
activetab: 'index',
controller: HomeCtrl
}).
when('/portfoolio', {
templateUrl: 'pages/works.html',
controller: PrivacyCtrl,
activetab: 'portfoolio'
}).
when('/minust', {
templateUrl: 'pages/about.html',
controller: AboutCtrl,
activetab: 'minust'
}).
when('/teenused', {
templateUrl: 'pages/teenused.html',
controller: TeenusedCtrl,
activetab: 'teenused'
}).
otherwise({ redirectTo: '/' });
}]).run(['$rootScope', '$http', '$browser', '$timeout', "$route", function ($scope, $http, $browser, $timeout, $route) {
$scope.$on("$routeChangeSuccess", function (scope, next, current) {
$scope.part = $route.current.activetab;
});
I'm guessing it's a simple thing to fix but I'm quite new to angular.
html5mode: docs.angularjs.org/guide/…