Javascript Angular-intro.js不工作
从一个步骤转到另一个步骤时,我已在步骤上应用了Javascript Angular-intro.js不工作,javascript,angularjs,intro.js,Javascript,Angularjs,Intro.js,从一个步骤转到另一个步骤时,我已在步骤上应用了ng if条件。。。如果angular intro.js中的任何if条件失败,如何继续 <a ng-intro-options="IntroOptions" ng-intro-method="CallMe" ng-intro-oncomplete="CompletedEvent" ng-intro-onexit="ExitEvent" ng-intro-onchange="ChangeEvent" ng-intro-onbe
ng if
条件。。。如果angular intro.js
中的任何if条件失败,如何继续
<a ng-intro-options="IntroOptions" ng-intro-method="CallMe"
ng-intro-oncomplete="CompletedEvent" ng-intro-onexit="ExitEvent"
ng-intro-onchange="ChangeEvent" ng-intro-onbeforechange="BeforeChangeEvent"
ng-intro-autostart="false" ng-click="CallMe();">
<span class="pull-right">
<i class="fa fa-question fa-md" aria-hidden="true" title="Help"></i>
</span>
</a>
<div id="step1">welcome</div>
<div ng-if="admin" id="step2">hello nice to meet you Admin</div>
<div id="step3">list of tasks for the day {{user}}</div>
如果
ng if
条件为“admin”,则其工作正常。但是如果if条件失败,则以步骤1结束。如果
ng if
条件失败,我如何直接继续执行步骤3。使用ng开关
而不是ng if
尝试使用ng show
,ng开关
但nop仍不工作在代码中使用多个ng if的位置?如果你能准确地解释我在代码中可以在哪里使用ng开关,你就已经使用了ng。你能解释一下你想用这段代码做什么吗?如果你在代码中使用了多个ng开关,请使用ng开关,而不是ng开关?如果只有一次你能准确地解释在我的代码中哪里可以使用ng开关,你能解释一下你想用这段代码做什么吗?
$scope.IntroOptions = {
steps:[
{
element: '#step1',
intro: 'Search data from current list. Advanced Search helps you find data with respective columns.',
position: 'bottom'
},
{
element: '#step2',
intro: 'Click on Add icon to add new Channel.',
position: 'left'
},
{
element: '#step3',
intro: 'List of all channels.',
position: 'top'
}
],
showStepNumbers: false,
showBullets: false,
exitOnOverlayClick: true,
exitOnEsc:true,
nextLabel: '<strong>NEXT!</strong>',
prevLabel: '<span style="color:green">Previous</span>',
skipLabel: 'Exit',
doneLabel: 'Thanks'
};