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