How import { Screen } from 'quasar' by using UMD
-
Im having difficulties with importing via UMD
i try created but seems like not accurate
const Screen = require(‘quasar’)
but having error
require is not definedkindly share how to archive it ?
-
@sanjee
In UMD you do not need to import anything:// global context: console.log(Quasar.plugins.Screen) ... created () { // inside components: console.log(this.$q.screen) },
it is available as
this.$q.screen
inside components or asQuasar.plugins.Screen
in global (window) context.more here:
-
thats cool thank you for your reply @qyloxe