twg_
2 months ago
9
3
Vue

Toggle navigation on page load/change

Posted 2 months ago by twg_

So I've got my mobile navigation toggling open and close. The only issue I have left is how to close the navigation when the next page is loaded.

<script>
    let app = new Vue({
        el: '#app',
        data: {
            open: false
        },
        methods: {
            mobileNavToggle () {
                this.open = !this.open
            }
        }
    })
</script>

Please sign in or create an account to participate in this conversation.