Offline OCR with TesseractJS and Ionic

I am trying to use Tesseract in offline mode in my Ionic 4 app. In order to do it I have based my code on what is explained in this example, although it is done with Ionic 3 and what the Tesseract GitHub explains regarding offline mode.

I have followed the same tutorial but i got errors in

i got error in (load)=”recognize($event)” as is not unknown in ionic 4

content: ‘Analyzing image’ and also on content and the last one type: ‘textarea’

i am using ionic 4 angular