Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

How to Run Angular 2 function in chrome debug console??? #402

Closed
bluejaye opened this issue May 19, 2016 · 2 comments
Closed

How to Run Angular 2 function in chrome debug console??? #402

bluejaye opened this issue May 19, 2016 · 2 comments

Comments

@bluejaye
Copy link

Dear

I met a problem, need to use JS to run function inside Angular 2. In angular debug mode, I know that I can call ng.probe() to return angular component instance. but ng.probe() is unavailable in production mode.

Do you know any other way to access angular 2 function please?

Cheers
Jay

@vanessayuenn
Copy link
Contributor

Hey @bluejaye, you can use $a in console to get a particular debug element once you have Augury open and running. However, this is also only available when your Angular 2 app is running on dev mode.

@bluejaye
Copy link
Author

Hi Vanessa

Thank you for replying. My purpose is to access angular 2 function without
any tools help.

It seems that there is no easy way to do it.

On Saturday, 21 May 2016, Vanessa Yuen notifications@github.com wrote:

Hey @bluejaye https://github.com/bluejaye, you can use $a in console to
get a particular debug element once you have Augury open and running.
However, this is also only available when your Angular 2 app is running on
dev mode.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#402 (comment)

Best Regards,

Jay

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants