Skip to content

Instantly share code, notes, and snippets.

@maitrungduc1410
Last active September 25, 2022 03:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maitrungduc1410/68ae50b9c9a6c893959075a1c15871a8 to your computer and use it in GitHub Desktop.
Save maitrungduc1410/68ae50b9c9a6c893959075a1c15871a8 to your computer and use it in GitHub Desktop.
Angular (NGX) Intro.js
{
"projects": {
"ngx-introjs": {
"architect": {
"build": {
"options": {
"styles": [
"node_modules/intro.js/introjs.css"
],
"scripts": [
"node_modules/intro.js/intro.js"
]
},
},
...
}
}
}
}
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