mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 15:07:13 +08:00
Hacking on Angular extension for TabBar
This commit is contained in:
55
hacking/tabsAngular.html
Normal file
55
hacking/tabsAngular.html
Normal file
@ -0,0 +1,55 @@
|
||||
<html ng-app="tabsTest">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Tab Bars</title>
|
||||
|
||||
<!-- Sets initial viewport load and disables zooming -->
|
||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<link href="/vendor/font-awesome/css/font-awesome.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="../dist/ionic.css">
|
||||
<script src="/vendor/angular/angular.js"></script>
|
||||
<style>
|
||||
.content {
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<tabs>
|
||||
<tab-controller title="Home">
|
||||
<header class="bar bar-header bar-dark">
|
||||
<h1 class="title">Tab Bars</h1>
|
||||
</header>
|
||||
<content has-header="true" has-tabs="true">
|
||||
<h1>Home</h1>
|
||||
</content>
|
||||
</tab-controller>
|
||||
<tab-controller title="About">
|
||||
<header class="bar bar-header bar-dark">
|
||||
<h1 class="title">About</h1>
|
||||
</header>
|
||||
<content has-header="true" has-tabs="true">
|
||||
<h1>About Us</h1>
|
||||
</content>
|
||||
</tab-controller>
|
||||
<tab-controller title="Settings">
|
||||
<header class="bar bar-header bar-dark">
|
||||
<h1 class="title">Settings</h1>
|
||||
</header>
|
||||
<content has-header="true" has-tabs="true">
|
||||
<h1>Settings</h1>
|
||||
</content>
|
||||
</tab-controller>
|
||||
</tabs>
|
||||
|
||||
<script src="../../js/ionic-events.js"></script>
|
||||
<script src="../../js/ionic-gestures.js"></script>
|
||||
<script src="TabBar.js"></script>
|
||||
<script src="TabBarController.js"></script>
|
||||
<script src="TabAngular.js"></script>
|
||||
<script>
|
||||
angular.module('tabsTest', ['ionic.ui']);
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user