Angular第三方UI组件库(github搜“awesome angular ")-----lonic

概述:是一个第三方的适用于移动端App的UI组件库,可以与Angular/React/Vue.js组合,也可以独立使用。

九种主题色:primary、secondary、tertiary、danger、warning、success、dark、medium、light

1、页面结构:<ion-app>

<ion-header>

<ion-toolbar>

<ion-title></ion-title>

</ion-toolbar>

</ion-header>

<ion-content></ion-content>

<ion-footer></ion-footer>

<ion-app>

2、布局系统:

<ion-grid>

<ion-row>

<ion-col  size="6" offse="" push=""    pull=""></ion-col>

</ion-row>

</ion-grid>

3、徽章:

<ion-badge color=""></ion-badge>

4、图标:<ion-icon name="home"></ion-icon>

5、输入框:

<ion-item>

<ion-label  position="fixed/stacked/floating">提示文字</ion-label>

<ion-input></ion-input>

</ion-item>

6.搜索框:<ion-searchbar></ion-searchbar>

7.按钮:

<ion-button  color=""   size="small/large"

expand="block/full" shape="round" fill="solid(实心)/outline(空心)/clear(没有背景色和边框)">文字+图标</ion-button>

8.卡片:

<ion-card>

<img>

<ion-card-header>ion-card-title/subtitle</ion-card-header>

<ion-card-content></ion-card-content>

</ion-card>

<ion-card>

<ion-item></ion-item>

...

</ion-card>

9.轮播广告

<ion-slides  pager="true"  #mySlides>

<ion-slide>文字/图片</ion-slide>

....

</ion-slides>

@ViewChild('mySlides',{static:true})

private  mySlides

ngOninit(){

this.mySlides.startAutoplay()

}

10.列表项

<ion-item detail="true" href="#" (click)="">

<ion-avatar/thumbnail slot="start"></ion-avatar/thumbnail>

<ion-label></ion-label>

<ion-button slot="end">

<ion-icon slot="start"></ion-icon>

</ion-button>

</ion-item>

11.列表

<ion-list>

<ion-list-header></ion-list-header>

<ion-item></ion-item>

</ion-list>

12.无限滚动

<ion-infinite-scroll   threshold="50px"  (ionfinite)="loadMore($event)">

<ion-infinite-scroll-content  loadingText="加载中...."   loadingSpinner="bubblue">

</ion-infinite-scroll-content>

</ion-infinite-scroll>

loadMore(ev){

//加载数据....

ev.target.complete()

}

13.弹出框(ActionSheet/Alert/Modal)

constructor(private  alertController:AlertController){   }

this.alertController.create({

header:' ',

message:' ',

buttons:[' ',' ']

}).then( ( dialog) =>{

dialog.present()

})

14.标签页和导航系统

1.创建路由词典

const  routes =[

{path:'index',component:IndexComponent}

]

2.注册路由词典

imports:[  RouterModule.forRoot(routes) ]

3.声明路由出口

<ion-router-outlet></ion-router-outlet>

4.使用标签页组件,关联路由地址

<ion-tabs>

<ion-tab-bar  slot="bottom/top">

<ion-tab-button  tab="index">

ion-icon +文字

</ion-tab-button>

</ion-tab-bar>

</ion-tabs>

5.访问测试

Angular知识点复习的更多相关文章

  1. Spring知识点复习

    Spring知识点复习 一.专业术语 侵入式设计 引入框架,对现有的类的结构有影响,即需要实现或继承某些特定类.如:Struts框架 非侵入式设计 引入框架,对现有的类结构没有影响.如:Hiberna ...

  2. Hybrid App 应用开发中 9 个必备知识点复习(WebView / 调试 等)

    前言 我们大前端团队内部 ?每周一练 的知识复习计划继续加油,本篇文章是 <Hybrid APP 混合应用专题> 主题的第二期和第三期的合集. 这一期共整理了 10 个问题,和相应的参考答 ...

  3. angular知识点(2)

    angular知识点(2) 1.为了代码规范,对于需要自动加载的依赖,需要在前面加上注释,注释为://@ngInject 或者是/*@ngInject*/ 2.ngSwitch的应用 在需要用到选择出 ...

  4. python类,魔术方法等学习&&部分ssti常见操作知识点复习加深

    python类学习&&部分ssti常见操作知识点复习加深 在做ssti的模块注入的时候经常觉得自己python基础的薄弱,来学习一下,其实还是要多练习多背. 在python中所有类默认 ...

  5. C语言知识点复习梳理

    C语言知识点复习梳理 C语言的知识点讲完了,接下来就是做一下整理与总结,然后就会进入其他知识的学习. 本文目录如下: 基础知识. 顺序程序设计. 数据类型. 标准输入输出. 进制转换. 选择结构. 循 ...

  6. JSOI2020备考知识点复习

    我太菜了qaq,我好爱咕咕咕啊 在NOIP2018爆炸后,我只能指望着在JSOI2019JSOI2020上咸鱼翻身(flag*1) 所以,我要开始复习学习(flag*2) 此博客文会不定时更新qaq( ...

  7. NOIp知识点复习——最短路计数

    $Mingqi\_H$ NOIp 2017考挂了...gg 重新开始好了. 计划明年2月24号前复习完所有的NOIp知识点(毕竟很不熟练啊),之后到七月底前学习完省选的东西(flag?). 从现在开始 ...

  8. 【Hybird】274-Hybird App 应用开发中 5 个必备知识点复习

    前言 我们大前端团队内部 ?每周一练 的知识复习计划还在继续,本周主题是 <Hybird APP 混合应用专题> ,这期内容比较多,篇幅也相对较长,每个知识点内容也比较多. 之前分享的每周 ...

  9. Hybird App 应用开发中5个必备知识点复习

    前言 我们大前端团队内部 ?每周一练 的知识复习计划还在继续,本周主题是 <Hybird APP 混合应用专题> ,这期内容比较多,篇幅也相对较长,每个知识点内容也比较多. 之前分享的每周 ...

随机推荐

  1. python爬虫(1)requests库

    在pycharm中安装requests库的一种方法 首先找到设置 搜索然后安装,蓝色代表已经安装 requests库中的get请求 与HTTP协议相对应,requests库也有七种请求方式. 获取ur ...

  2. PHP 构造方法 __construct()

    PHP 构造方法 __construct() PHP 构造方法 __construct() 允许在实例化一个类之前先执行构造方法. 构造方法 构造方法是类中的一个特殊方法.当使用 new 操作符创建一 ...

  3. python学习23之标准库

    '''''''''标准库1.datetime 日期时间模块存在于Lib/datetime.py文件内'''from datetime import datetime,date,time #from d ...

  4. 【Linux删除问题】Operation not permitted

    问题:删除某文件出现cannot remove 'XXX': Operation not permitted 查看问题: 1. lsattr 查看隐藏属性 [root@oldboy oldboy]# ...

  5. Python下redis包安装

    找到Python的第三方包安装路径,在dos命令行中切换到该目录,输入: pip install redis 最后在Python解释器中即可.

  6. HDU1873 看病要排队【模拟+优先队列】

    看病要排队 Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Subm ...

  7. 历史上的今天mysql数据库包含详情分类以及图片

    历史上的今天mysql数据库包含详情分类以及图片 https://item.taobao.com/item.htm?spm=a2oq0.12575281.0.0.50111debo71iaJ& ...

  8. Codeforces Round #623 (Div. 2, based on VK Cup 2019-2020 - Elimination Round, Engine) B. Homecoming

    After a long party Petya decided to return home, but he turned out to be at the opposite end of the ...

  9. 刷新DNS解析缓存+追踪+域名解析命令

    刷新DNS解析缓存 命令:ipconfig /flushdns 用于改完host之后. 追踪IP: 命令:tracert www.baidu.com 域名解析: 命令:nslookup www.bai ...

  10. 「译」Graal JIT编译器是如何工作的

    原文Understanding How Graal Works - a Java JIT Compiler Written in Java,讲了jvmci和ideal graph的基本概念以及一些优化 ...