Я пытаюсь использовать intro.js в моем приложении meteor.как использовать intro.js форму npm пакет в метеор 1.4.1.1?
import { Template } from 'meteor/templating';
import { ReactiveVar } from 'meteor/reactive-var';
// import introJs from 'intro.js';
var introJs = require('intro.js');
import './main.html';
.....//some code here
Template.hello.events({
'click button'(event, instance) {
// increment the counter when button is clicked
instance.counter.set(instance.counter.get() + 1);
},
'click #introjs'(e,i){
console.log("call me");
introJs("#introjs").start();
}
});
но я даю
TypeError: introJs is not a function
Как решить эту проблему? спасибо.
У меня также есть тот же вопрос. Вы нашли что-нибудь? –
Во время поиска я получил ссылку https://github.com/zhouzhuojie/meteor-introjs, если это полезно, и также дайте мне знать. –
@Arjun Chaudhary no Я пытаюсь найти способ. вы видите это сообщение на метеористном форуме [link] (https://forums.meteor.com/t/not-working-bootstraptour-with-meteor-1-4/28859/6) –