- 浏览: 2487050 次
- 性别:
- 来自: 成都
文章分类
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
ionic UI(4)ionic2 framework - basic and components and native
Just create a tutorial project with TypeScript
> ionic start myionic2project2 tutorial --v2 --ts
> ionic serve
Visit the page
http://localhost:8100/
Error Message:
ERROR in [default] /Users/carl/work/hybrid/myionic2project2/node_modules/angular2/src/facade/promise.d.ts:1:9
Cannot re-export name that is not defined in the module.
Solution:
No solution yet
waiting this website to upgrade https://github.com/driftyco/ionic2-app-base. angular2 is still beta.
1 Project Structure
app/app.ts is the entry point for our app.
Definition about App
@App({
templateUrl: 'build/app.html',
config: {} // http://ionicframework.com/docs/v2/api/config/Config/
})
./app/app.html - is the main template HTML.
2 Adding Pages
<ion-nav id="nav" [root]="rootPage" #content swipe-back-enabled="false"></ion-nav>
[root] means the first page
In the TS code
rootPage: any = HelloIonicPage;
This page is defined here
import {HelloIonicPage} from './pages/hello-ionic/hello-ionic';
Each page has its own folder. It contains .html, .scss and .ts
import {Page} from 'ionic-angular';
@Page({
templateUrl: 'build/pages/hello-ionic/hello-ionic.html'
})
export class HelloIonicPage {}
@Page decorator from angularJS, Every page should have a html template and a class.
Navigation bar
<ion-navbar *navbar>
Navigating to Pages
this.nav.push(), it works like a simple stack.
http://ionicframework.com/docs/v2/components/#navigation
UI components
http://ionicframework.com/docs/v2/components/
3 Components
http://ionicframework.com/docs/v2/components/
Action Sheets - option buttons
Alert - Basic alert information,
Prompt Alert Information - ask user to input
Confirm Alert
Radio Alert - Select the option you want
Checkbox Alert - Select the options you want
Badges - show the number, like how many likes
Buttons - Buttons in Components
Cards - Display contents - list ; Images list; Background images list;
Checkbox -
Grid -
Icons - list all the icons
http://ionicons.com/
Inputs - floating label input;
Lists - List Dividers; icons List - setting pages; avatar list with small icons; multiple line lists with small icons; Thumbnail list with small icons and buttons
Menus -
Modals - use for login or sign up, it is a new page
Navigation -
Radio -
SearchBar -
Segments - it looks like tabs
Select - Slides for the first few screens.
Tabs - icon tabs; icons and texts;
Badges - show numbers on the tabs icons
Toggle - checkbox
Toolbar - can be used as a header of our apps; buttons in toolbar; segments and buttons in toolbar;
4 Native
ActionSheet - native options;
App Availability - check if an app is installed on this mobile device;
Badge - badge like unread message on the icon of application;
Barcode Scanner - open camera and scan the barcode and return the data;
BLE - Support for iOS and Android - oh.
Calendar - Add event to the calendar
Camera - photo or video
Clipboard -
Contacts - manage and access contacts
Device - get device UUID and other device information
Geolocation - GPS and related GEO information
Image Picker -
Local Notifications -
Push - push notification
Splash screen -
App Rate - rate your app plugin
App Version - read the app version
Base64 to Gallery - save base64 data to photos?
Battery Status -
Date Picker -
Device Motion -
Device Orientation - compass
Dialogs - native dialog
Facebook -
Flashlight -
Globalization -
Hotspot -
Keyboard -
Navigator -
SMS - text message
StatusBar -
Toast -
TouchID -
Vibration -
References:
http://sillycat.iteye.com/blog/2285319
Just create a tutorial project with TypeScript
> ionic start myionic2project2 tutorial --v2 --ts
> ionic serve
Visit the page
http://localhost:8100/
Error Message:
ERROR in [default] /Users/carl/work/hybrid/myionic2project2/node_modules/angular2/src/facade/promise.d.ts:1:9
Cannot re-export name that is not defined in the module.
Solution:
No solution yet
waiting this website to upgrade https://github.com/driftyco/ionic2-app-base. angular2 is still beta.
1 Project Structure
app/app.ts is the entry point for our app.
Definition about App
@App({
templateUrl: 'build/app.html',
config: {} // http://ionicframework.com/docs/v2/api/config/Config/
})
./app/app.html - is the main template HTML.
2 Adding Pages
<ion-nav id="nav" [root]="rootPage" #content swipe-back-enabled="false"></ion-nav>
[root] means the first page
In the TS code
rootPage: any = HelloIonicPage;
This page is defined here
import {HelloIonicPage} from './pages/hello-ionic/hello-ionic';
Each page has its own folder. It contains .html, .scss and .ts
import {Page} from 'ionic-angular';
@Page({
templateUrl: 'build/pages/hello-ionic/hello-ionic.html'
})
export class HelloIonicPage {}
@Page decorator from angularJS, Every page should have a html template and a class.
Navigation bar
<ion-navbar *navbar>
Navigating to Pages
this.nav.push(), it works like a simple stack.
http://ionicframework.com/docs/v2/components/#navigation
UI components
http://ionicframework.com/docs/v2/components/
3 Components
http://ionicframework.com/docs/v2/components/
Action Sheets - option buttons
Alert - Basic alert information,
Prompt Alert Information - ask user to input
Confirm Alert
Radio Alert - Select the option you want
Checkbox Alert - Select the options you want
Badges - show the number, like how many likes
Buttons - Buttons in Components
Cards - Display contents - list ; Images list; Background images list;
Checkbox -
Grid -
Icons - list all the icons
http://ionicons.com/
Inputs - floating label input;
Lists - List Dividers; icons List - setting pages; avatar list with small icons; multiple line lists with small icons; Thumbnail list with small icons and buttons
Menus -
Modals - use for login or sign up, it is a new page
Navigation -
Radio -
SearchBar -
Segments - it looks like tabs
Select - Slides for the first few screens.
Tabs - icon tabs; icons and texts;
Badges - show numbers on the tabs icons
Toggle - checkbox
Toolbar - can be used as a header of our apps; buttons in toolbar; segments and buttons in toolbar;
4 Native
ActionSheet - native options;
App Availability - check if an app is installed on this mobile device;
Badge - badge like unread message on the icon of application;
Barcode Scanner - open camera and scan the barcode and return the data;
BLE - Support for iOS and Android - oh.
Calendar - Add event to the calendar
Camera - photo or video
Clipboard -
Contacts - manage and access contacts
Device - get device UUID and other device information
Geolocation - GPS and related GEO information
Image Picker -
Local Notifications -
Push - push notification
Splash screen -
App Rate - rate your app plugin
App Version - read the app version
Base64 to Gallery - save base64 data to photos?
Battery Status -
Date Picker -
Device Motion -
Device Orientation - compass
Dialogs - native dialog
Facebook -
Flashlight -
Globalization -
Hotspot -
Keyboard -
Navigator -
SMS - text message
StatusBar -
Toast -
TouchID -
Vibration -
References:
http://sillycat.iteye.com/blog/2285319
发表评论
-
Stop Update Here
2020-04-28 09:00 262I will stop update here, and mo ... -
NodeJS12 and Zlib
2020-04-01 07:44 432NodeJS12 and Zlib It works as ... -
Docker Swarm 2020(2)Docker Swarm and Portainer
2020-03-31 23:18 311Docker Swarm 2020(2)Docker Swar ... -
Docker Swarm 2020(1)Simply Install and Use Swarm
2020-03-31 07:58 323Docker Swarm 2020(1)Simply Inst ... -
Traefik 2020(1)Introduction and Installation
2020-03-29 13:52 294Traefik 2020(1)Introduction and ... -
Portainer 2020(4)Deploy Nginx and Others
2020-03-20 12:06 381Portainer 2020(4)Deploy Nginx a ... -
Private Registry 2020(1)No auth in registry Nginx AUTH for UI
2020-03-18 00:56 374Private Registry 2020(1)No auth ... -
Docker Compose 2020(1)Installation and Basic
2020-03-15 08:10 327Docker Compose 2020(1)Installat ... -
VPN Server 2020(2)Docker on CentOS in Ubuntu
2020-03-02 08:04 399VPN Server 2020(2)Docker on Cen ... -
Buffer in NodeJS 12 and NodeJS 8
2020-02-25 06:43 337Buffer in NodeJS 12 and NodeJS ... -
NodeJS ENV Similar to JENV and PyENV
2020-02-25 05:14 417NodeJS ENV Similar to JENV and ... -
Prometheus HA 2020(3)AlertManager Cluster
2020-02-24 01:47 360Prometheus HA 2020(3)AlertManag ... -
Serverless with NodeJS and TencentCloud 2020(5)CRON and Settings
2020-02-24 01:46 293Serverless with NodeJS and Tenc ... -
GraphQL 2019(3)Connect to MySQL
2020-02-24 01:48 209GraphQL 2019(3)Connect to MySQL ... -
GraphQL 2019(2)GraphQL and Deploy to Tencent Cloud
2020-02-24 01:48 392GraphQL 2019(2)GraphQL and Depl ... -
GraphQL 2019(1)Apollo Basic
2020-02-19 01:36 276GraphQL 2019(1)Apollo Basic Cl ... -
Serverless with NodeJS and TencentCloud 2020(4)Multiple Handlers and Running wit
2020-02-19 01:19 265Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(3)Build Tree and Traverse Tree
2020-02-19 01:19 260Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(2)Trigger SCF in SCF
2020-02-19 01:18 252Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(1)Running with Component
2020-02-19 01:17 237Serverless with NodeJS and Tenc ...
相关推荐
Angular-ionic-native-http-connection-backend.zip,离子型和iosionic本机http连接后端cors问题的解决方案,Angularjs于2016年发布,是Angularjs的重写版。它专注于良好的移动开发、模块化和改进的依赖注入。angular...
ionic-native-http-connection-backend 该库添加@ionic-native/http (如果可用)作为与Angular的Http和HttpClient的连接后端 动机 现在,Apple促进/要求使用WKWebView而不是不推荐使用的UIWebView ,Ionic已通过其...
ionic-framework-master
Leverage Angular 2 events and Ionic-specific events to communicate About the Author Hoc Phan is a technologist with a wide range of experiences in frontend development, cloud computing, and big data. ...
week-5-ionic-native-christopherjacksonjr:week-5-ionic-native-christopherjacksonjr由GitHub Classroom创建
Author Chris Griffith takes you step-by-step through Ionic’s powerful collection of UI components, and then helps you use it to build three cross-platform mobile apps. Whether you’re new to this ...
前端-ionic-官网教程学习项目photo-gallery
ionic1 嵌套路由,用ion-nav-bar和ion-view来实现页面回退,导致不能个性化的设置导航右侧按钮,这个指令基于angular1实现个性化定制右侧按钮,
@ ionic-native / google-maps(v5.27.0) @ ionic-native / google-maps插件是用于Ionic框架的的包装器插件。 Ionic Native将插件回调包装在Promise或Observable中,为所有插件提供通用接口,并使其易于使用带有...
react-native-vs-ionic-todos, 比较本机和离子 2的简单应用程序 React vs 离子 2这里是一个( 非常) 简单的非持久性待机应用程序,它在两个离子 2中实现,为。本机响应代码在这里: rn/TodoApp 。js 。要尝试:cd rn...
ionic start ionic-color-and-image-selector blank的唯一更改是在pages / home和src / assets / imgs文件夹中。 将图像放在src / assets / imgs文件夹中。 更新home.ts和home.scss中的颜色和图像名称。 更新home...
Mastering Ionic 2 takes you through working with the Ionic 2 framework on a step-by-step basis from basic concepts and core technologies through to developing fully functional mobile apps with 3 ...
ionic-sublime-plugin 支持sublime2、3版本
You will also implement various native plugins and integrate them with Ionic and Ionic Cloud services to use them optimally in your application. By this time, you will be able to create a full-...
We take a look at theming Ionic apps using the built-in SCSS setup, work with Ionic API components, and create a “Thought Journal” app that needs session and data to be managed on the client side....
@ ionic-native / google-maps @ 5.0.xxx演示 该演示应用程序旨在描述如何在Ionic v4中使用@ionic-native/google-maps 。 在使用此演示之前... 请用您的API密钥替换config.xml和package.json文件中的(API key) 。 ...
详述ionic3的开发流程 目录结构: 1、Ionic Framework简介 ...4、Ionic-UI 组件 5、Ionic-Native 6、Ionic 常见问题 注:本文档创作过程主要是根据项目实战做出的总结,但也借鉴了前贤的著作,若有侵权请联系删除。
Ionic uses Angular as the JavaScript framework and has a nice default UI style with a similar look and feel to native apps. Firebase is a realtime database which can be accessed in web apps using ...
Develop engaging mobile experiences with a native-looking UI in Ionic and AngularJS. Use out-of-the-box Ionic functionalities, customize existing components, and add new components with this ...