mirror of
https://github.com/wassname/side-by-side.git
synced 2026-09-09 11:34:24 +08:00
Use html5 pushstate
This commit is contained in:
@@ -10,8 +10,13 @@ angular.module("sideBySide").service "route", ['$location', ($location) ->
|
||||
, {})
|
||||
|
||||
@params.base = '' if 'base' not of @params
|
||||
@params.base = @params.base.replace(/\./g, '/')
|
||||
|
||||
@appUrl = $location.absUrl()
|
||||
.substring(0, $location.absUrl().length - $location.url().length)
|
||||
|
||||
@update = (key, value) ->
|
||||
@params[key] = value
|
||||
(property + ':' + value for property, value of @params).join('/')
|
||||
|
||||
@
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user