mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 22:29:44 +08:00
Fixed TabBar hack demo
This commit is contained in:
@ -45,10 +45,10 @@
|
|||||||
<nav id="tab-bar" class="tabs tabs-success"></nav>
|
<nav id="tab-bar" class="tabs tabs-success"></nav>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<script src="../../js/ionic-events.js"></script>
|
<script src="../../js/events.js"></script>
|
||||||
<script src="../../js/ionic-gestures.js"></script>
|
<script src="../../js/gestures.js"></script>
|
||||||
<script src="TabBar.js"></script>
|
<script src="../../js/views/tabBar.js"></script>
|
||||||
<script src="TabBarController.js"></script>
|
<script src="../../js/controllers/tabBarController.js"></script>
|
||||||
<script>
|
<script>
|
||||||
// Grab the sections
|
// Grab the sections
|
||||||
var tab = document.getElementById('tab-bar');
|
var tab = document.getElementById('tab-bar');
|
||||||
@ -103,8 +103,8 @@
|
|||||||
c4.title = 'Cats';
|
c4.title = 'Cats';
|
||||||
c4.icon = 'icon-minus';
|
c4.icon = 'icon-minus';
|
||||||
|
|
||||||
var c = new TabBarController({
|
var c = new ionic.controllers.TabBarController({
|
||||||
tabBar: new TabBar({ el: tab }),
|
tabBar: new ionic.ui.TabBar({ el: tab }),
|
||||||
controllers: [ c1, c2, c3, c4 ]
|
controllers: [ c1, c2, c3, c4 ]
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user