Last active
September 25, 2022 03:15
-
-
Save maitrungduc1410/68ae50b9c9a6c893959075a1c15871a8 to your computer and use it in GitHub Desktop.
Angular (NGX) Intro.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"projects": { | |
"ngx-introjs": { | |
"architect": { | |
"build": { | |
"options": { | |
"styles": [ | |
"node_modules/intro.js/introjs.css" | |
], | |
"scripts": [ | |
"node_modules/intro.js/intro.js" | |
] | |
}, | |
}, | |
... | |
} | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from '@angular/core'; | |
// declare this to by pass typescript error | |
// can put this in index.d.ts file | |
declare var introJs: any | |
@Component({ | |
selector: 'app-root', | |
template: ` | |
<a href='http://google.com/' data-intro='Hello step one!'>Hello</a> | |
`, | |
}) | |
export class AppComponent { | |
ngOnInit() { | |
introJs().start(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment