1

I am trying to get data from googleTagmanger. But I am getting error as "Property 'subscribe' does not exist on type 'Observable'" Below is my code.

 this.translate.get('newtest.testsimulation').subscribe((res: String) => {
                pageLabel = res;
   });

Kindly help me to resolve this issue

Note : I have just migrated my angular application from version 5 to 6. Earlier it was working fine.

Bhushan Khaladkar
  • 420
  • 1
  • 7
  • 20

1 Answers1

0

I think it has to do with imports. try importing it like: import {Observable} from 'rxjs';