MCPcopy
hub / github.com/tighten/ziggy / params

Method params

src/js/Router.js:205–209  ·  view source on GitHub ↗

* Get all parameter values from the current window URL. * * @example * // at URL https://tighten.ziggy.dev/posts/4?lang=en with 'posts.show' route 'posts/{post}' and domain '{team}.ziggy.dev' * route().params; // { team: 'tighten', post: 4, lang: 'en' } * * @return {Obj

()

Source from the content-addressed store, hash-verified

203 * @return {Object}
204 */
205 get params() {
206 const { params, query } = this._unresolve();
207
208 return { ...params, ...query };
209 }
210
211 get routeParams() {
212 return this._unresolve().params;

Callers

nothing calls this directly

Calls 1

_unresolveMethod · 0.95

Tested by

no test coverage detected