我尝试创建一个离子应用程序,我想通过使用AngularJS链接HTML页面来为按钮添加功能。我怎样才能做到这一点 ?我已关联plunker。
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"/>
<title>Ionic Framework Example</title>
<link href="//code.ionicframework.com/nightly/css/ionic.css" rel="stylesheet"/>
<script src="//code.ionicframework.com/nightly/js/ionic.bundle.js"></script>
<script src="app.js"></script>
</head>
<body ng-app="starter">
<ion-header-bar class="bar-stable">
<h1 class="title">Ionic Blank Starter</h1>
</ion-header-bar>
<div class="bar bar-header">
<h1 class="title">Multi Page Application</h1>
</div>
<div class="bar bar-subheader">
<h2 class="title">Sub Header</h2>
<div class="button-bar bar-balanced">
<a class="button">First page </a>
<a class="button">Second page </a>
<a class="button">Third page</a>
</div>
</div>
<ion-content></ion-content>
</body>
</html>