mirror of
https://github.com/wassname/side-by-side.git
synced 2026-09-09 11:34:24 +08:00
Get route properties in specified order
This commit is contained in:
@@ -29,9 +29,11 @@ angular.module("sideBySide").service "route", ['$location', ($location) ->
|
||||
value
|
||||
|
||||
@get = () ->
|
||||
(property + ':' + getValue(value) \
|
||||
for property, value of @params when value)
|
||||
.join('/')
|
||||
['base', 'display', 'section']
|
||||
.filter (key) => @params[key]
|
||||
.map (key) =>
|
||||
key + ':' + getValue @params[key]
|
||||
.join('/')
|
||||
|
||||
@update = (key, value) ->
|
||||
@params[key] = value
|
||||
|
||||
Reference in New Issue
Block a user