There should be a more "angualr" way to get url params