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