angularUI download address: https://github.com/Clouda-team/BlendUI
After downloading and decompressing, demo is in the root directory
Now test the use of demo on the official website
Open mobile-angular-ui-master/demo/index.html with a browser and find that there is no loading style or js. Then, after reviewing the elements, I found that the loading path was wrong, so I made the following modification
Line 5: <base href="/mobile-angular-ui-master/" />
Remove all/site root directory paths and change to relative paths
demo.js and demo.css are in the demo directory <script src="demo/demo.js"></script>, <link rel="stylesheet" href="demo/demo.css" />
Line 30,34: <div ng-include="'demo/sidebar.html'" , <div ng-include="'demo/sidebarRight.html'"
Modified index.html
The code copy is as follows:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<base href="/mobile-angular-ui-master/" />
<title>Mobile Angular UI Demo</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-ui" />
<meta name="apple-mobile-web-app-status-bar-style" content="yes" />
<link rel="shortcut icon" href="favicon.png" type="image/x-icon" />
<link rel="stylesheet" href="dist/css/mobile-angular-ui-hover.css" />
<link rel="stylesheet" href="dist/css/mobile-angular-ui-base.css" />
<link rel="stylesheet" href="dist/css/mobile-angular-ui-desktop.css" />
<link rel="stylesheet" href="demo/demo.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.0/angular.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.0/angular-route.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.0/angular-touch.min.js"></script>
<script src="dist/js/mobile-angular-ui.js"></script>
<script src="demo/demo.js"></script>
</head>
<body
ng-app="MobileAngularUiExamples"
ng-controller="MainController"
>
<!-- Sidebars -->
<div ng-include="'demo/sidebar.html'"
ui-track-as-search-param='true'
>/div>
<div ng-include="'demo/sidebarRight.html'"
>/div>
<div>
<!-- Navbars -->
<div>
<div ui-yield-to="title">
Mobile Angular UI
</div>
<div>
<div ui-toggle="sidebarLeft">
<i></i> Menu
</div>
</div>
<div ui-yield-to="navbarAction">
<div ui-toggle="sidebarRight">
<i></i> Chat
</div>
</div>
</div>
<div>
<div>
<a href="http://mobileangularui.com/"><i></i> Docs</a>
<a href="https://github.com/mcasimir/mobile-angular-ui"><i></i> Sources</a>
<a href="https://github.com/mcasimir/mobile-angular-ui/issues"><i></i> Issues</a>
</div>
</div>
<!-- App Body -->
<div ng-class="{loading: loading}">
<div ng-show="loading">
<i></i>
</div>
<div>
<ng-view></ng-view>
</div>
</div>
</div><!-- ~ .app -->
<div ui-yield-to="modals"></div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-48036416-1', 'mobileangularui.com');
ga('send', 'pageview');
</script>
</body>
</html>
The problem still exists at this time, and I found that home.html did not load successfully
http://gdzx.com/mobile-angular-ui-master/home.html, the directory should be under demo. I can't find where home.html was introduced when checking the source code. I guess it was loaded in with angular. I'll solve this problem when I learn angularUI.
Today (2014/12/20) is finally done. Put the entire project in the website root directory, and then visit demo/index.html to load all css styles and js scripts normally.