获取当前页面url中的参数 coffeescript+node.js+angular

获取当前url:
@$window.alert @$location.url()
获取参数(json格式)
@$window.alert @$location.search().channel