Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Expose screen as a global on the vm #9

Open
geiseri opened this issue Feb 4, 2018 · 2 comments
Open

Expose screen as a global on the vm #9

geiseri opened this issue Feb 4, 2018 · 2 comments

Comments

@geiseri
Copy link
Contributor

geiseri commented Feb 4, 2018

There are a few cases that I need to be able to get access to "screen", so I have this code all over the place where I take this.$el.elm.screen. Is there a way that we can expose this.$screen that would shortcut that?

@lyonlai
Copy link
Owner

lyonlai commented Feb 6, 2018

that I don't know for the moment. Will need to take some time to find some options.

@gtarsia
Copy link

gtarsia commented Mar 26, 2019

@geiseri This can be achieved with a global vue mixin

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants