As depicted here, I use in my app the url:
http://localhost:8080/rooms/lisbon?roomTypes=1
And in ngOnInit I subscibes both:
this._route.data.subscribe(x => { console.log(1);doCommonBiz(); })
this._route.paramMap.subscribe(param => { console.log(2);doCommonBiz(); })
I need to be notified one one of them occured, if any of below routed:
http://localhost:8080/rooms/lisbon?roomTypes=2
http://localhost:8080/rooms/london?roomTypes=1
http://localhost:8080/rooms/cologne?roomTypes=3
But my subscriptions fire twice.
My question is how can I be notified only once by being aware of two subsciption?