赞
踩
this.sendEvent('mapChanged', param); // pop.component.ts 调用方法的内部
import { filter } from 'rxjs/operators';
import { SceneEvent } from '../../domain/SceneEvent.model';
ngOnInit() {
this.mapChange = this.sceneEvent.pipe(filter(data => data.eventName === 'mapChanged'))
.subscribe(data => {
//对对应事件的处理
this.curRegionId = data.eventData.neId;
this.cityName = data.eventData.name,
this.createPoint();
});
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。