-
| 
         Do I have to have a page.js file in order to get access to the route params when I'm building a static SPA application? I tried finding some way to access them in the page.svelte   | 
  
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            geoffrich
          
      
      
        Feb 2, 2023 
      
    
    Replies: 1 comment 3 replies
-
| 
         Are you looking for  <script>
  import { page } from '$app/stores';
  $: console.log($page.params);
</script> | 
  
Beta Was this translation helpful? Give feedback.
                  
                    3 replies
                  
                
            
      Answer selected by
        ejsmith
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Are you looking for
$page.params?