{{#if !hidden}} <slot></slot> {{/if}} <script> export default { data () { return { hidden: true }; }, methods: { toggle () { this.set({ hidden: !this.get('hidden') }); } } }; </script>