【发布时间】:2018-03-31 21:07:03
【问题描述】:
我目前正在使用 Ionic 1 和 AngularJS 开发酒店预订应用程序。
当您预订房间时,您会看到一个 ng-modal 弹出窗口,其中包含您的房间信息和联系信息等。
我实现了一个按钮,可以像这样将用户带出模式窗口并返回主页。
<a href="#tab/home" style="text-decoration: none;">
<button class="button button-large button-balanced col" ng-click="modal.hide()" >
<p style="color: white; font-size: 20px;">Thank you</p>
</button>
我也想用同一个按钮来重置整个应用程序,有没有简单的方法可以做到这一点? 谢谢:)
【问题讨论】:
标签: angularjs