#### angular的脏检测。javascript
http://www.javashuo.com/article/p-tqmrbtss-gq.htmlcss
http://www.javashuo.com/article/p-edwevhya-ea.htmlhtml
http://www.javashuo.com/article/p-mbjkybuu-gg.html前端
http://www.javashuo.com/article/p-brjkvdcx-bc.htmlvue
#### constructer 和ngOnInitwebpack
constructer 在@input以前执行。
而ngOnInit在@input 以后执行。
#####
了解下这个git
https://www.jianshu.com/p/044c056cf763angularjs
#### class替换es6
https://www.jianshu.com/p/ead159cc324d
查看本身的这个项目。https://stackblitz.com/edit/angular-f7zagz
input只会检测指针的改变,而不会检测内部值的改变。
onPush会改变当前组件的脏检测机制为手动的,可是从input传进来的改变仍是能够改变当前组件的。
不可变对象(每次都返回一个新的对象)提供的优势是,原来可能对一个对象的十几个属性进行改变,屡次触发dom,如今只改变一个指针,只触发一次Dom刷新。
onPush策略的优势比默认的策略效率高。
onPush策略的几个方法。
#### angular 父给子传中何时注入何时掉方法传。都是必须了解的。
#### 若是在 别的模块也使用当前模块的component那么必须exports一下。
declarations: [ Deom1ParentComponent ], exports: [Deom1ParentComponent]
#### let-tableData
### java的set get与angular的set get有什么异同。
https://blog.csdn.net/linmengmeng_1314/article/details/78854489
#### 这两个会一块儿执行。
#### 能够从这个里边作点事情。
##### 这个上边的竟然会报错
#### constructor想使用 async
http://www.javashuo.com/article/p-bqqfztpf-hn.html
#### 最专业,最全面的angular的学习文档
https://www.jianshu.com/p/f0f81a63cbcb
### http://www.javashuo.com/article/p-pahurjsu-ge.html
##### angular的指令传参数。
##### angular中度了解。
#### rxjs能够避免angular的单向数据流。
angualr的编程是面向类的,只要provider注入就是一个新的对象。angular是单向数据流。
#### 若是父组件和子组件 注入一样一个class,那么子组件会继承父组件 的class.因此在angular中导入组件的顺序比较重要。
###### angular的注入服务。
http://www.javashuo.com/article/p-cidngjgi-ez.html
https://blog.csdn.net/yjw123456/article/details/81170903
http://www.javashuo.com/article/p-skdnsdmh-dv.html
https://www.javascriptcn.com/read-34746.html
#### ngIf绑定方法都会脏检查
####
modalservice的两种注入方式。
####
### 有时间研究下Ui组件中的这个属性用来作什么的。
#### style写到这个里边。
##### 经过监听表单的set get方法来获取表单数据改变的方法。
##### 经过监听form提供的valid状态的方法来获取事件。
#### get放到constructor上边去。 能够经过bind绑定this.
#### 调用方法的时候也能够尝试这么去写代码。
####
http://www.javashuo.com/article/p-erhulfix-eu.html
### 管道用一个服务的形式引进来。
#### 这么写就会报错。
####
#### 这个http.service.js写的有意思。值得一看。
##### useClass
http://www.javashuo.com/article/p-hdjclnyg-hp.html
推介内容 http://www.javashuo.com/article/p-klbtwxpn-cv.html
https://blog.csdn.net/qq_30101131/article/details/80878055
###
#### ViewChild 两种用法。
####
angular的指令也能传值么。
hrefcheck [hrefCheckOption]="{message:'还未上传用户手册',value:vm.base.manualName}"
#### 指令前加一个*
#### angular中的ngOnChanges 若是是{name:aaa}
若是只是二级的name改变了也是会触发的。
☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂
#### 服务注入咱们就不要去思考,providedIn: 'root', 就在须要注入的模块注入把。
这个providerIn参数,是6才引入的。。
http://www.javashuo.com/article/p-bqkcfipl-eo.html
学习资料:
中文官网 https://angular.cn/guide/quickstart
angular4 教程 w3cschool
https://www.w3cschool.cn/angular/angular-ld3h24nk.html
https://www.kaifaxueyuan.com/frontend/angular-4/angular4-event-binding.html
事件机制。
https://blog.csdn.net/weixin_40766882/article/details/87102030
### angular 的vscode的编辑工具。
##### 别人的学习笔记
这个是angular1的。
http://www.javashuo.com/article/p-hfvetvmg-ee.html
这个是angular2
http://www.javashuo.com/article/p-vddtnyou-bb.html
这我的的博客有时间都看看。
https://www.cnblogs.com/mttcug/default.html?page=4
AngularJS7那些不得不说的事故 http://www.javashuo.com/article/p-fjbpsjhl-dx.html
https://www.jianshu.com/p/d51e9f6dab2d
☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂
各类框架对比连接
http://www.javashuo.com/article/p-furvmqjr-gx.html
☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂
angular js 与 angular
https://blog.csdn.net/homer168/article/details/79352287?from=timeline&isappinstalled=0
(1) 咱们常说的 Angular 1 是指 AngularJS; 从Angular 2 开始已经更名了。再也不带有JS,只是单纯的 Angular;
(2)还有一个难以想象的版本变化: 从 Angular 2 直接跳跃到了 Angular 4 , 没有angular3的。
(3) Angular 1 是一个典型的 MVC 架构 (Model - View - Controller )
(4) 相比于 Angular 1 的MVC 架构, Angular 2 是一个典型的基于组件(component) 架构。
##### 为什么匆忙推出 Angular 2 ?
照理说,Angular 1. x 版本已经足够强大,为何还匆匆忙忙推出 Angular 2 呢?这是迫于 mobile apps 的须要。按照惯性的思惟: Angular 2 应该是 Angular 1.x 的升级版本,其实否则, Angular 2 与 Angular 1.x 彻底不一样, 最基本的语法都不同。 Angular 1.x 是 基于 JavaScript的框架,而Angular 2 是基于 TypeScript的框架。
##### Angular 2 有什么好?
相比 Angular 1.x, Angular 2 的体积更小,为何这么作,说白了,一个字——快; 若是仅仅用于PC 端的WEB开发, Angular 1.x足以应对; 若是是用于 mobile app ,在用户体验方面,略显捉襟见肘!
##### Angular 4 有什么好?
Angular 4 是 Angular 2 的升级版本, 也就是说,从 Angular 2以后,它们的版本一脉相承,是升级版本,而不是推到重来的版本。 Angular 4 比 Angular 2 更快。
因此说, 从 Angular 1.x 到 Angular 2 ,再发展到 Angular 4, 其路线就是为了更快一些。
☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂
rxjs
重点推介这一篇。http://www.javashuo.com/article/p-udfedidi-h.html
与promise的区别和联系。 Promise本质上也是一个Observable,能使用fromPromise把Promise转成Observable 可是Promise .then()只能返回一个值,Observable能够返回多个值 Promise要么resolve要么reject,而且只响应一次。而Observable能够响应屡次 Promise不能取消,Observable能够调用unsubscribe()取消订阅
http://www.javashuo.com/article/p-xghzqhiq-eh.html
https://github.com/xufei/blog/issues/38
http://www.javashuo.com/article/p-qfvqpsse-h.html
https://www.jianshu.com/p/0ccfb99f6713
rxjs中文网。
https://cn.rx.js.org/class/es6/Observable.js~Observable.html
#### 组件中都没有对应的方法,可是不会报错,只有在事件发生的时候,用到这个方法了才报错。
☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂☂
#### 父给子传值相似 slot的概念。
https://blog.csdn.net/zgrbsbf/article/details/81145190
须要记住的代码
#### input事件的绑定
<input #searchBox id="search-box" (input)="search(searchBox.value)" />
#### pipe catchError
getHeroes (): Observable<Hero[]> { return this.http.get<Hero[]>(this.heroesUrl) .pipe( catchError(this.handleError<Hero[]>('getHeroes', [])) ); }
#### tap
getHero(id: number): Observable<Hero> { const url = `${this.heroesUrl}/${id}`; return this.http.get<Hero>(url).pipe( tap(_ => this.log(`fetched hero id=${id}`)), catchError(this.handleError<Hero>(`getHero id=${id}`)) ); }
#### this.route
##### anguarl和angularjs区别。
##### ([ngModel]) [ngModel]
##### 经常使用指令。
##### | async
###### @Component
##### HeroService的两种注入方式。
##### 这个useClass就是换一个别名,真正使用的service用来作测试之类的。
providers: [{ provide: HeroService, useClass: MockHeroService }],
##### 看不懂
###### angular的状态管理。
https://www.itcodemonkey.com/article/9929.html
http://www.javashuo.com/article/p-skqbbxjl-ba.html
这个文章的做者太厉害了,重点推荐。
https://juejin.im/post/5a6d812851882573432d693e
###### angular核心和经常使用术语
#### 掘金
angular组件间通讯。
http://www.javashuo.com/article/p-fuuoidmt-dv.html
#### ngrx
http://www.ngui.cc/news/show-1967.html
#### 若是在.ts文件中,这些若是没有标识的话,就会报错。
####
@ViewChild('bbb') bbb:ElementRef; @ViewChild('ccc', {read: ViewContainerRef}) ccc:ViewContainerRef;
### ts文件里只要不定义就会报错。
#### 看看ts上面这种类的写法,第一感受是为何会把变量生命提出来呀,这不是成了类的静态变量了么,吓的我赶快去看看阮一峰的es6的静态属性。
#### 必定要赋值。
####
###
this.activeRoute.queryParams.value.tab this.element.nativeElement.parentNode
###
### 一个类外边命名的变量。能不能全部的调用的地方共享。
###
#### ng-container ng-content ng-template
https://www.imooc.com/article/details/id/24837
#### .
http://www.javashuo.com/article/p-hydfeoro-ch.html
#### 这个必看和重点推介
####
https://www.jianshu.com/p/3aff76d13fb5
#### ngClass
https://blog.csdn.net/u013589443/article/details/72866603
#### angular 动画
https://github.com/search?q=angular%E5%8A%A8%E7%94%BB
http://www.javashuo.com/article/p-mjtyvnhf-cn.html
http://www.javashuo.com/article/p-mmcgdxbn-bz.html
#### 父想直接调用子的方法渲染数据了,发现子组件没有渲染。找不到相似的v-show这种,因此暂时用height=0解决。[hidden在4之后就不用了]
#### 有没有那种相似的keep-alive那种属性。
#### less里边用数组。
##### angular的render2是干什么用的。
https://www.jianshu.com/p/2c4fc5760eaf
#### angular的 click.stop
http://www.javashuo.com/article/p-nojbjwle-bh.html
#### angular的数据驱动。
https://www.jianshu.com/p/e71b0b95eaa0
#### *ngFor还能够这么写。
#### 若是单个数据流的值从新赋值,简单属性和object属性都会触发ngChange么。
#### Subject的乱用。若是一个属性须要监听的话,那么。
####angular对一些Html不进行编译。
#### 管道还能这样子用。
#### cacl计算出来的高度会有自动超出隐藏的效果。
#### 记住这种写法。
#### 有时间对比一下上边的高度为何没有起来。
## echarts有时间了解一下。
#### 错误集锦。
http://www.javashuo.com/article/p-tlrsyhvt-bc.html
#### angular中还能够这样去写代码。
##### augular好强大
##### angular仍是es6的作法。
##### angular的语法约定。
##### 业务组件模块的替换。
###
### 总是很差用。
##### angular的?机制。
#### 工做中须要优化的地方。
为何不把设计图直接放服务器呢,都已是Html格式了。还要压缩给开发。
####
#### angular的函数和样式指令。
#### sass的函数。
#### angular的 Renderer2
https://blog.csdn.net/qq_28004379/article/details/80801378
#### 获取dom的size而后进行处理。
https://blog.csdn.net/gaomingyangc/article/details/79564731
#### 加不加有什么区别。
#### 1E3
### angular的服务和数据流
angualr的服务有全局和局部的。
某一个服务都是依赖注入。都是一个对象。
### 的angular的模块的理解。
#### 为何webpack引入的是单例对象。
import Vue from 'vue'
而不是新的呢。from引入的是同一个指针么。
####
http://www.javashuo.com/article/p-maqlvqus-dt.html
#### 还在用 Redux,要不要试试 GraphQL & Apollo?
http://www.javashuo.com/article/p-maqlvqus-dt.html
http://www.javashuo.com/article/p-rrbyymek-en.html
#### 如何理解restful api
https://www.runoob.com/w3cnote/restful-architecture.html
######
[style.paddingLeft.px]="padding"
#### 有时间了解下
### 获取dom高度而后修改
###
### 有时间看看这个
#### construstoer和注册进来 属性哪一个先执行。
##### 有时间看看 logModule="waf"
#### useClass为了调用这个方法么。
#####
#####
### 有事件研究下这个 ngzone
#####
#### angualar的懒加载怎么去作。
### 服务的注入方式,经过模块的providers。好比组建的message服务经过依赖注入construct.
##### 这里不注入就不能用么。
#### 这个不清楚。
#### 会合并http请求,某个时间点内,若是相同参数的的http请求会被合并。
#### 想起了rxjs的of操做符。
####
###
#####
#####
angular下的dom操做。
#### angular中的父子传值
若是子接受到的是一个基本类型,那么改变这个基本类型的话,父不会有改变。若是子接受的指针类型。那么若是只是改变这个指针指向的某一个变量的话,那么父也会改变可是若是指针被覆盖的话,父不会有什么改变。
##### 不管是类定义仍是接口定义数据model都是能够的。
#### angular中的表达式中的上下文。
#### 如何理解angular的单向数据流。
指的是组件之间的数据流仍是,组件和dom之间的数据流。
src/app/app.component.html (template input variable) content_copy <ul> <li *ngFor="let customer of customers">{{customer.name}}</li> </ul> src/app/app.component.html (template reference variable) content_copy <input #customerInput>{{customerInput.value}}</label> 表达式中的上下文变量是由模板变量、指令的上下文变量(若是有)和组件的成员叠加而成的。 若是你要引用的变量名存在于一个以上的命名空间中,那么,模板变量是最优先的,其次是指令的上下文变量,最后是组件的成员。 上一个例子中就体现了这种命名冲突。组件具备一个名叫 customer 的属性,而 *ngFor 声明了一个也叫 customer 的模板变量。 在 {{customer.name}} 表达式中的 customer 实际引用的是模板变量,而不是组件的属性。 模板表达式不能引用全局命名空间中的任何东西,好比 window 或 document。它们也不能调用 console.log 或 Math.max。 它们只能引用表达式上下文中的成员。
### angular的70条指令。
####
### 监控hash路由。
this.routersEventReset = this.router.events // .filter((event) => event instanceof NavigationStart) .subscribe((event: NavigationStart) => { this.greenWhiteFlagChange() }); } greenWhiteFlagChange() { // 若是layoutStyleConfig中含有路由的话那么添加这个容器 let hash = location.hash.replace(/\?(.*)$/,'').replace('#','') if(layoutStyleConfig.greenWhite.indexOf(hash) > -1) { this.greenWhiteFlag = true; }else{ this.greenWhiteFlag = false; } }
#### angualar在路由中注册的组件,必须在module中declarations
#####
#####