0

I want to import of from rxjs on my Angular 8.2.3 project. However, I see that this is present in 2 locations -

import { of } from 'rxjs/observable/of';

import { of } from 'rxjs/internal/observable/of';

Which way do I go?

Krishnabm
  • 161
  • 8

1 Answers1

1

I would like to say, you can use directly:

import { of } from 'rxjs';

Else, you have to use

import { of } from 'rxjs/observable/of';
Adam Perea
  • 320
  • 2
  • 9