2018年8月27日

摘要: rxjs中的BehaviorSubject方法可以记住上一次的值 阅读全文
posted @ 2018-08-27 17:29 温温婉婉 阅读(141) 评论(0) 推荐(0) 编辑
 
摘要: 如图:将指令名 当做一个输入型变量 用在set 方法前,在使用的时候,只需 <div [appDrap]="true"></div> 即可 阅读全文
posted @ 2018-08-27 16:06 温温婉婉 阅读(90) 评论(0) 推荐(0) 编辑
 
摘要: private _isDragable = false; set isDraggable(val){ this._isDragable = val; } get isDraggable(){ return this._isDragable; } //使用方式:虽然它是一个方法,但是它是一个属性方法, 阅读全文
posted @ 2018-08-27 16:01 温温婉婉 阅读(152) 评论(0) 推荐(0) 编辑