---
url: "https://vueda.dev/v3/reference/api/vue/ViewActionRouter.md"
title: "ViewActionRouter"
---

# ViewActionRouter

## Overview

Resolves the correct view component for a given model action at runtime, delegating to CRUD
views, workflow transition views, or dynamically imported custom action views as appropriate.

## Props

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="prop-app">app</span> | `string` | yes |  | Django app label that owns the model. |
| <span id="prop-model">model</span> | `string` | yes |  | Django model name whose action should be resolved. |
| <span id="prop-pk">pk</span> | `string\|number\|array` |  | `""` | Primary key(s) forwarded to the resolved action view. |
| <span id="prop-action">action</span> | `string` | yes |  | Name of the action to resolve and render. |

## Source

`client/lib/views/ViewActionRouter.vue`
