angular
zhao_tuo
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Angular2-使用Angular CLI快速搭建工程(一)
前言: 本文适合Angular2的初学者阅读; 时下web前端发展迅猛,新框架层出不穷,大家都知道三驾马车VueJS,Angular2,React。国内VueJS非常热门,百度热点趋势以1000%的涨幅在增加。Angular2在国外非常受欢迎,在国内的粉丝还非常少,文章不多,究其原因有这么几点主要是学习曲线陡峭,上手困难,(1)angular本身概念难懂,(2)使用typescript转载 2017-05-31 17:23:56 · 12802 阅读 · 3 评论 -
Angular2-使用Angular-CLI快速搭建工程(二)
使用iconfont iconfont是阿里巴巴的icon项目,阿里巴巴使用,也公开对外使用,现在一些公司都使用了,它有CDN,访问快,用起来也很方便,这章节讲下如何使用iconfont;(当然,本质上就是引用一个icon的font文件,无论用bootstrap的还是自己做的,都是一样的,希望读者触类旁通) iconfont上创建工程 具体怎么做已经超出本文范围;有兴趣的可以自己转载 2017-05-31 17:29:47 · 851 阅读 · 0 评论 -
Angular 组件之间如何通信?
组件之间的共享可以有好几种方式 父->子 input 方式 import {Component,Input} from 'angular2/core'; @Component({ selector: 'child', template: ` child {{content}} ` }) class Child { @Input() con转载 2017-11-08 11:30:16 · 659 阅读 · 0 评论 -
angular中*ngfor中trackBy的用法
On each ngDoCheck triggered for the ngForOf directive Angular checks what objects have changed. It uses differs for this process and each differ uses trackBy function to compare the current obje转载 2018-02-05 15:59:02 · 6273 阅读 · 0 评论 -
Avoiding common confusions with modules in Angular
Angular modules is a pretty complex topic. Angular team has done a great job putting up a quite lengthy documentation page on NgModule that can be found here. It provides clear explanation to most of ...转载 2018-02-08 15:29:29 · 374 阅读 · 0 评论
分享