rework routing
This commit is contained in:
8
src/lib/routing.js
Normal file
8
src/lib/routing.js
Normal file
@ -0,0 +1,8 @@
|
||||
import { writable } from 'svelte/store';
|
||||
|
||||
|
||||
export const currentView = writable('Home');
|
||||
|
||||
export function navigate(viewName) {
|
||||
currentView.set(viewName);
|
||||
}
|
Reference in New Issue
Block a user