Analysis of webapp framework AngularUI demo and webappangularui

Source: Internet
Author: User
Tags cloudflare

Analysis of webapp framework AngularUI demo and webappangularui

AngularUI: https://github.com/Clouda-team/BlendUI

After downloading and unzipping, the demo is in the root directory

Now test the use of demo on the official website

Open mobile-angular-ui-master/demo/index.html in a browser and find that the style or js is not loaded. Then, after reviewing the elements, the loading path was found to be incorrect, so the following modifications were made:

Row 3: <base href = "/mobile-angular-ui-master/"/>
Remove all/website root directory paths and change them to relative paths.
Demo.jsand demo.css are in the demo directory <script src = "demo/demo. js"> </script> and <link rel = "stylesheet" href = "demo/demo.css"/>
Row 30,34: <div ng-include = "'demo/sidebar.html '", <div ng-include = "'demo/sidebarRight.html '"
Modified index.html

Copy codeThe Code 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, minimal-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'
Class = "sidebar-left"> </div>
<Div ng-include = "'demo/sidebarRight.html '"
Class = "sidebar-right"> </div>
<Div class = "app">
<! -- Navbars -->
<Div class = "navbar-app navbar-absolute-top">
<Div class = "navbar-brand-center" ui-yield-to = "title">
Mobile Angular UI
</Div>
<Div class = "btn-group pull-left">
<Div ui-toggle = "sidebarLeft" class = "btn sidebar-toggle">
<I class = "fa-bars"> </I> menu
</Div>
</Div>
<Div class = "btn-group pull-right" ui-yield-to = "navbarAction">
<Div ui-toggle = "sidebarRight" class = "btn">
<I class = "fa-comment"> </I> Chat
</Div>
</Div>
</Div>
<Div class = "navbar-app navbar-absolute-bottom">
<Div class = "btn-group justified">
<A href = "http://mobileangularui.com/" class = "btn-navbar"> <I class = "fa-home fa-navbar"> </I> Docs </a>
<A href = "https://github.com/mcasimir/mobile-angular-ui" class = "btn-navbar"> <I class = "fa-github fa-navbar"> </I> Sources </a>
<A href = "https://github.com/mcasimir/mobile-angular-ui/issues" class = "btn-navbar"> <I class = "fa-exclamation-circle fa-navbar"> </I> Issues </>
</Div>
</Div>
<! -- App Body -->
<Div class = "app-body" ng-class = "{loading: loading}">
<Div ng-show = "loading" class = "app-content-loading">
<I class = "fa-spinner fa-spin loading-spinner"> </I>
</Div>
<Div class = "app-content">
<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 ', 'leleangularui. com ');
Ga ('send', 'pageview ');
</Script>
</Body>
</Html>

The problem still exists, and it is found that home.html is not loaded successfully.
Bytes.

Today (), I finally finished it. I put the entire project in the root directory of the website, and then I can access demo/index.html to load all css styles and js scripts normally.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.