Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Vue instace #3

Closed
IgorMCHC opened this issue May 11, 2019 · 9 comments
Closed

Vue instace #3

IgorMCHC opened this issue May 11, 2019 · 9 comments

Comments

@IgorMCHC
Copy link

image

how do I access a date within the command?

@dongsuo
Copy link
Owner

dongsuo commented May 13, 2019

You can add a time property in task obj, like this:
pushToList({ time: 'Date Managed By Yourself', type: 'info', label: 'Info', message: 'Terminal Initializing ............' }).
Is this what you want?

@IgorMCHC
Copy link
Author

No, I wanted to have access to the instance of vue so I could expand my terminal ... thus simulating a real terminal

@dongsuo
Copy link
Owner

dongsuo commented May 14, 2019

OK, I understand your need, but I can't understand why you need this. Can you explain the reason?

@dongsuo
Copy link
Owner

dongsuo commented May 14, 2019

@IgorMCHC You can describe a scenario where Vue instance is needed.

@IgorMCHC
Copy link
Author

@IgorMCHC Você pode descrever um cenário em que a instância do Vue é necessária.

Should I be manipulating some instance date or having to call the Vue store

@dongsuo
Copy link
Owner

dongsuo commented May 16, 2019

Do you mean instance data by 'instance date'? I think your can manage vue store and instance data outside your termianl component.

@IgorMCHC
Copy link
Author

But for example, I wanted to make an authentication system using the terminal and inside it access the dates and store the vue when executing a command

@dongsuo
Copy link
Owner

dongsuo commented May 20, 2019

OK, I will consider your need.

@finoghentov
Copy link

finoghentov commented Apr 2, 2020

No, I wanted to have access to the instance of vue so I could expand my terminal ... thus simulating a real terminal

I think that you can solve it adding additional parameter to your command

image

If I correctly understood you, this example will help you. You adding additional parameter to your object and assign it "this" context which is your component context. And you will have access to your component parameters in your object,

@dongsuo dongsuo closed this as completed Jun 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants