[转]ionic tab view hide tab bar
2016-02-24 11:36
218 查看
http://stackoverflow.com/questions/23991852/how-do-i-hide-the-tabs-in-ionic-framework
I hope this helps you guys :)
////// tabs.html <ion-tabs ng-class="{'tabs-item-hide': hideTabs}"> // --> your tabs here </ion-tabs> ////// somewhere_you_wanna_hide_tabbar.html <ion-view hide-tabs> // --> your contents </ion-view> ////// directives.js .directive('hideTabs', function($rootScope) { return { restrict: 'A', link: function($scope, $el) { $rootScope.hideTabs = true; $scope.$on('$destroy', function() { $rootScope.hideTabs = false; }); } }; });
I hope this helps you guys :)
相关文章推荐
- mysql5.6新特性总结
- mybatis里面xml中SQL语句if语句里嵌套if语句
- Java实现仿微信红包分配规则
- poj 3258 River Hopscotch 二分查找
- RAID相关知识简介
- 机器学习算法概览
- Nginx 变量漫谈(三)
- Host key verification fail…
- .net六种汉字代码转换(gbk_utf8_u…
- 原来电脑也有DNS缓存清空命令ipcon…
- firefox这个功能很酷
- 百度知道规定之多少
- 用PHP伪造来路信息
- 传统媒体试水微信杂志 联手搭建销售新模式
- Cent OS 6.5下安装gcc-5.3.0
- 如何分析python的性能(linux)
- 世界级的安卓测试开发流!
- 性能分析之-- JAVA Thread Dump
- Android WebView开发问题及优化汇总
- Makefile常用函数