wire:navigate
Basic Usage
// wires/BlogPost.bx
class extends="cbwire.models.Component" {
data = {
"title": "",
"content": ""
};
function save() {
// Save blog post
redirect("/blog", true); // Navigate using wire:navigate
}
function cancel() {
redirect("/blog", true);
}
}// wires/BlogPost.cfc
component extends="cbwire.models.Component" {
data = {
"title" = "",
"content" = ""
};
function save() {
// Save blog post
redirect("/blog", true); // Navigate using wire:navigate
}
function cancel() {
redirect("/blog", true);
}
}What wire:navigate Does
Available Modifiers
Navigation Process
Redirecting with Navigation
Persisting Elements Across Pages
Preserving Scroll Position
JavaScript Hooks
Manual Navigation
Event Listeners
Analytics Integration
Script Handling
Progress Bar Customization
Custom Loader Example
Was this helpful?