Skip to content
This repository has been archived by the owner on Jan 17, 2022. It is now read-only.

Get current step? #142

Open
wjentner opened this issue Jul 19, 2017 · 5 comments
Open

Get current step? #142

wjentner opened this issue Jul 19, 2017 · 5 comments

Comments

@wjentner
Copy link

It would help a lot to get the current step.

The original introjs holds a variable _currentStep. It would be great if either this is accessible through the service or even better part of the callback.

@millerscout
Copy link
Collaborator

Hello,

The service itself has the intro object.

Try accessing like below

ngIntroService.introObject._currentstep

If you didn't find tell us :)

@mcasey8540
Copy link

@millerscout, ngIntroService.introObject._currentstep didn't work in v3.3.0

Uncaught TypeError: Cannot read property '_currentstep' of undefined

@R4y11
Copy link

R4y11 commented Dec 15, 2017

I think the correct syntax would be ngIntroService.intro._currentstep
For me it worked

@chriswang1990
Copy link

Thanks @R4y11,

I think the correct syntax would be ngIntroService.intro._currentstep

Possibly a typo here, for me it's ngIntroService.intro._currentStep

@R4y11
Copy link

R4y11 commented Jan 5, 2018

@chriswang1990
Yes, you are right, I forgot the capital letter.
ngIntroService.intro._currentStep is the correct one.

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

5 participants