【发布时间】:2017-10-04 21:16:44
【问题描述】:
当我点击下面给定的链接时,我想转到主页。但它没有采取 我到我想去的页面。当我点击下面时,我想访问主页 提到的链接或按钮。我必须添加任何角度代码吗?如果是的话 我必须写什么以及在哪个文件中??
<ion-header>
<ion-navbar>
<button ion-button menuToggle>
<ion-icon name="menu"></ion-icon>
</button>
<ion-title>Profile</ion-title>
</ion-navbar>
</ion-header>
<ion-content padding>
<a href="#/home.html">click to home page</a>
<button type="button" ng-click="home()">click to home page</button>
</ion-content>
【问题讨论】:
-
您的路由配置中的主页 url 是什么?
-
我创建了一个名为“prorile”的页面,位置是“src/pages/profile page and all other page”
-
不,我的意思是您主页的绝对 URL。即
http://localhost/homepage