Module: Ovto::Router::Actions
- Defined in:
- lib/ovto/router/actions.rb
Constant Summary collapse
- HISTORY =
Native(`history`)
Instance Method Summary collapse
Instance Method Details
#ovto_router_handle_click_link(path:) ⇒ Object
10 11 12 13 |
# File 'lib/ovto/router/actions.rb', line 10 def ovto_router_handle_click_link(path:) HISTORY.pushState(nil, "", path) return { ovto_router: OvtoRouterState.new(path: path) } end |
#ovto_router_handle_update_path(path:) ⇒ Object
6 7 8 |
# File 'lib/ovto/router/actions.rb', line 6 def ovto_router_handle_update_path(path:) return { ovto_router: OvtoRouterState.new(path: path) } end |