src/app/share/share.service.ts
Methods |
constructor()
|
Defined in src/app/share/share.service.ts:7
|
isDev |
isDev()
|
Defined in src/app/share/share.service.ts:19
|
Returns :
boolean
|
showIntro |
showIntro()
|
Defined in src/app/share/share.service.ts:11
|
Returns :
any
|
import { Injectable } from '@angular/core';
import * as introJs from 'intro.js';
@Injectable({
providedIn: 'root'
})
export class ShareService {
constructor() { }
showIntro() {
return introJs().setOptions({
nextLabel: '下一步',
prevLabel: '上一步',
doneLabel: '完成'
});
}
isDev() {
// console.log('ShareService.isDev()', environment.production);
return true;
}
}