展开Observable对象,从其operator能观察到施加在该Observable对象上的操作:
Map操作:(event) => this.getBreakpoint(event.target.innerWidth)

source.operator: DistinctUntilChangedOperator

这个this.breakpointService.breakpoint$的赋值位置:果然有map和distinctUntilChanged,通过pipe链接:

更多Jerry的原创文章,尽在:"汪子熙":

网友评论