首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >angular stepIndex向导如何更改angular

angular stepIndex向导如何更改angular
EN

Stack Overflow用户
提问于 2019-01-19 15:36:06
回答 1查看 1.7K关注 0票数 1

角度拱门向导如何更改步骤索引我在同一页上使用两个表单如何更改步骤索引以便我可以转到该特定步骤角度拱门向导如何更改步骤索引我正在同一页上使用两个表单如何更改步骤索引以便我可以转到该特定步骤

代码语言:javascript
复制
<aw-wizard >
    <aw-wizard-step  >
        <form role="form" >
            <div >
                <label class="text-left">Enter Email or Mobile to Login</label>
                <input class="form-control" placeholder="enter email and phone number" type="text" >
            </div>
            <div class="text-center">
                <button  type="submit"  >Next</button>
            </div>
        </form>
    </aw-wizard-step>
    <aw-wizard-step >
        <form role="form" >
            <div class="first-s" id="phone">
                <div class="form-group mt-3">
                    <label class="text-left">Enter Verification Code</label>
                    <input  class="form-control" placeholder="code" type="text" value="">
                </div>
                <div class="text-center">
                    <button  type="submit" >Login</button>
                </div>
            </div>
        </form>
    </aw-wizard-step>
    <aw-wizard-step>
        <form role="form" >
            <div class="second-s" >
                <div class="form-group mt-3">
                    <label class="text-left">Enter Password</label>
                    <input  class="form-control" placeholder="Password" type="password" value="">
                </div>
                <button  type="submit">Login</button>
            </div>
        </form>
    </aw-wizard-step>
</aw-wizard>
EN

回答 1

Stack Overflow用户

发布于 2021-01-24 07:24:34

首先,您必须使用stepId为每个步骤定义一个唯一的Id,然后在要执行跳转操作的位置使用awGoToStep = "{stepId: stepId}“

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54265031

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档