Use availabel methods of quasar-components

  • How can i use the available methods for the different quasar-components?
    For example i have a modal in my own component, which i want to open when component is created:

    <div id=“login-view” class=“layout-padding”>
    <q-modal ref=“maximizedModal” maximized :content-css="{padding: ‘50px’}">
    <h4>Maximized Modal</h4><p>This one is maximized on bigger screens too.</p>

    import { QModal } from ‘quasar’

    export default {
    created () {
    this.$refs[‘maximizedModal’].open() // <-- How to achieve this??

  • ok - was a misunderstanding with vue js lifehooks.

    now i use mounted() and it work’s

Log in to reply