-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
How to integrate intro js with angular 2 cli ? #701
Comments
May be can try this |
Hi @vibingopal! I recently wanted to use intro.js with my angular2 application what I did was:
Hope this helps you 🙂 |
Thank you for your response. Do i need to import the introjs module in app.module. I am seeing an error now with the statement let intro=introJs() |
Hello. I'm trying to integrate intro.js as well into my Angular 4 app. I have intro.js working as long as I manually configure HTML with attributes. I'd like to, however, put all of my intro data in a JSON file and load that through code and kick off intro via a button click (calling a function in my Angular component). How do I get typescript to recognize and load intro.js so I can compile my component? |
I figured it out. I was using |
I pulled it off using a this method:
|
|
I believe this issue is solved. |
Thanks for all of the help @yossely and @tomschreck ! For any future visitors, I have a working demo using intro.js in an angular 4 app here: https://github.com/fhightower-templates/angular4-introjs-demo . |
@jorawarsingh 's solution is fine, however it stopped working with new Angular-CLI in version 1.6.2 with following error: Do you have the same issue? |
For Angular4
In angular-cli.json
In tsconfig.app.json
Angular component code change path according to your directory
references |
Could any of you please let me know that how to call second component from home component using intro js in typescript? Unable to do that How to write the below JS code in TS, since in angular everything is part of index.html and we no need to call explicilty other html files
|
And what makes you so sure? As the creator of the intro.js, what is your recommended way for us to import the library for use in Angular 5+, today? |
@fibinger, Thank you :) |
@kevincaradant |
@fibinger, Ohh alright :/, thank you for your answer. |
My setup in Angular6, piggybacked off of @sameerAhmad9291's excellent answer:
in angular.json:
in <your-component>.component.ts:
|
@brandonatconvex Hi i implemented this in my application but instead of loading in the component , its calling this method and showing the introjs elements in index.html page, completely breaking the DOM. |
This is how i am doing. Hope it helps
Make sure you exit the tour when moving to next page by calling the exit method onInit of new component secondcomponent.component.ts
|
Decalre declare let introJs: any; at the top of the page. |
Install intro.js using
or
Add css in angular.json
JS
and now in ts file
|
@ermarkar answer works, but... "styles": [ not working for theme dark |
Is this path node_modules/intro.js/themes/introjs-dark.css exist? and if so then css rules are geeting loaded on browser? |
complete tutorial (integration with angular 2,6,7,8) |
Your provided site cannot be reached. |
it's very simple, follow my gist to see how to run introjs on angular (>=2) project: https://gist.github.com/maitrungduc1410/68ae50b9c9a6c893959075a1c15871a8 |
Hi Team,
I am working on using intro js in my application which is built using angular 2 framework.
Could you please suggest me any idea how to integrate it or any example already implemented with Intro js + angular 2.
Thank you
The text was updated successfully, but these errors were encountered: