I am currently working on a project where I should show the tour on the page.
I took a look at Bootstrap-Tour, and it was not so bad. I work in angluarJS controllers. Therefore, I create a Tour, add a few steps to it, and create a button that launches the StartTour () function in the AngularJS controller:
var t = new Tour({container: "#main",
backdrop: false,
debug:true,
orphan: true
});
t.addStep({
element: "#content123",
title: "Title123",
content: "Content123"
});
t.addSteps(
[
{
element: ".message.message-1",
title: "Welcome to my tour!",
content: "We're going to make this quick and useful."
},
{
element: ".message.message-2",
title: "Let finish this thing off with a bang.",
content: "Boom, bang, bam!"
}
]);
$scope.StartTour = function(){
t.start(true);
console.log(t);
console.log("start!!");
}
The wall I'm facing right now is that if I don't call an orphan: the truth is, when I create a new tour, nothing happens when I press the button. How do I get around this? Maybe some of the Angular people have worked with this tool? later I want to pack it into a directive.
source
share