Ionic build app--simple operation to achieve app production

Source: Internet
Author: User

ionic-- Angularjs-based app framework

1 installing ionic

1. Hbuilder Create an app project and import the Ionic css,js (fonts) file.

2. Import the Ionic.css and ionic.bundle.js files.

2 app creation using the styles provided by the Ionic framework

1.HTML Code

<BodyNg-app= "Todo">  <Ion-side-menus>    <!--Center Content -    <ion-side-menu-content>      <Ion-header-barclass= "Bar-dark">        <H1class= "title">Ionic</H1>      </Ion-header-bar>            <ion-content>          <Divclass= "List Card">  <Divclass= "Item Item-avatar">    <imgsrc=".. /img/222.jpg "/>    <H2>Ionic Demo</H2>     <P>Ljy</P>  </Div>  <Divclass= "Item Item-image">    <imgsrc=".. /img/2852185939109769629.jpg ">  </Div>  <aclass= "Item Assertive"href="#">Try Ionic</a></Div>      </ion-content>    </ion-side-menu-content>    <!--left menu -    <Ion-side-menuside= "Left">      <Ion-header-barclass= "Bar-dark">        <H1class= "title">Projects</H1>              </Ion-header-bar>      <Divclass= "List">  <Divclass= "Item Item-divider">This is the left menu</Div>  <aclass= "Item"href="#">This is Page1</a><aclass= "Item"href="#">This is Page2</a><aclass= "Item"href="#">This is page3</a></Div>    </Ion-side-menu>  </Ion-side-menus><Scripttype= "Text/javascript"src=".. /js/app.js "></Script>    </Body>

2.js

Angular.module (' Todo ', [' Ionic '])

This enables the creation of a simple homepage and side menu, with more specific ionic styles to refer to the help documentation.

Ionic build app--simple operation to achieve app production

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.