Skip to content

Commit 2d5f25a

Browse files
committed
NewWebUI: Add workaround to work with latest angular. Fixes #1782
1 parent 510da16 commit 2d5f25a

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

javascript/new-src/src/app.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@
2020
/* global angular */
2121
var ola = angular.module('olaApp', ['ngRoute']);
2222

23+
// AngularJS 1.6 now uses an '!' as the default hashPrefix, breaking
24+
// our routes. Following lines revert the default to the previous empty
25+
// string.
26+
// See https://docs.angularjs.org/guide/migration#commit-aa077e8
27+
ola.config(['$locationProvider', function($locationProvider) {
28+
'use strict';
29+
$locationProvider.hashPrefix('');
30+
}]);
31+
2332
ola.config(['$routeProvider',
2433
function($routeProvider) {
2534
'use strict';

0 commit comments

Comments
 (0)