Ionic 4 photo viewer compilation error

#1

I followed the approach guide and receive compilation error in ionic 4.

#2

Found solution: