An Angular 2 component to fetch Geo-location
Parul Dixit

It doesn’t work for me. .

this is the error log

[default] C:\Users\JS\Desktop\WebProject_CL\ng2_ccl_project\src\app\geo\geo.component.ts:7:3
 Argument of type ‘{ selector: string; styleUrls: string[]; providers: any[]; directives: any[]; template: string; }’ is not assignable to parameter of type ‘Component’.

How can I fix it?

Shouldn’t I write any code info into app.module.ts? 
I just pasted the ng2-location file into my src/app folder.

Show your support

Clapping shows how much you appreciated 임종식’s story.