Closed capic closed 9 years ago
Hey sorry for the delay... this can be done in a controller by interacting with the tour object on the scope when the controller loads. Would it be helpful to have an attribute that will evaluate to a boolean and start if true? I think that would be the only alternative.
Can you give an example of this? Thanks!
Something like this should work:
<div tour>
<div ng-controller="AutoStartController">
</div>
</div>
app.controller('AutoStartController", function ($scope) {
var tourStarted = $scope.$watch('tour', function (tour) {
if (tour) {
tour.start(true);
tourStarted();
}
});
});
Confirming the above suggestion works.
Hi, is it possible to autostart (depends to a condition) a tour without clicking on a button ? Thanks