mirror of
https://github.com/fazo96/pbs.git
synced 2025-01-27 14:34:19 +01:00
added html5 pushstate support
This commit is contained in:
parent
696ef08beb
commit
06f5af5d8d
@ -1,4 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "pbsapp",
|
"name": "pbsapp",
|
||||||
"root": "dist"
|
"root": "dist",
|
||||||
|
"routes": {
|
||||||
|
"**": "index.html"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
pertApp = angular.module 'pertApp', ['ui.router']
|
pertApp = angular.module 'pertApp', ['ui.router']
|
||||||
|
|
||||||
pertApp.config ($stateProvider,$urlRouterProvider) ->
|
pertApp.config ($stateProvider,$urlRouterProvider,$locationProvider) ->
|
||||||
$urlRouterProvider.otherwise '/'
|
$urlRouterProvider.otherwise '/'
|
||||||
|
$locationProvider.html5Mode enabled: yes, requireBase: no
|
||||||
$stateProvider.state 'home',
|
$stateProvider.state 'home',
|
||||||
url: '/'
|
url: '/'
|
||||||
templateUrl: 'welcome.html'
|
templateUrl: 'welcome.html'
|
||||||
|
Loading…
Reference in New Issue
Block a user