我试图在不使用服务的情况下在html页面之间传递表单数据。使用角度在html页面之间传递数据
这是我的代码链接 - >http://plnkr.co/edit/E6LM5Oq67XRcvVuMIv9i?p=preview 下面是我的contacts.html页面。
<html>
<head>
<title>Contacts Page</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular-route.js"></script>
<script src="app.js"></script>
</head>
<body ng-app="myApp" >
<table>
<tr>
<th>User ID</th>
<th>First Name</th>
<th>Last Name</th>
<th>Phone Number</th>
</tr>
<tr ng-repeat="contact in contacts">
<td>{{contact.uid}}</td>
<td>{{contact.fname}}</td>
<td>{{contact.lname}}</td>
<td>{{contact.pphone}}</td>
</tr>
</table>
</body>
</html>
该数据没有传递给contacts.html.How to do this?
请在你的问题的所有相关信息(包括代码)。看看[问]和[mcve]。 –
发布代码 – Coded9
两者都是不同的HTML页面。你不能传递那样的数据。 – SaiUnique