ng4-geoautocomplete icon indicating copy to clipboard operation
ng4-geoautocomplete copied to clipboard

Server side rendering support

Open starkpratik opened this issue 6 years ago • 2 comments

Hello i'm using this awesome library for my project but i found one thing that is restricting me to use it further which is server side rendering, how can we make this work with server side rendering (a.k.a Angular Universal). it will be good to have feature.

starkpratik avatar Jul 05 '18 08:07 starkpratik

I found a patch for this. Just copy this module folder in your code repository to make it locally available. Remove reference from package.json and node_modules as well. Change in your module file to give the path of local folder where you copy this. It will work.

satishsomani avatar Jul 31 '18 05:07 satishsomani

Yes i have tried the approach as you have mentioned and it works fine for me. Actually i was facing issue while rendering it on server side so i removed the references for 'ng4-geoautocomplete' from node modules, package.json and package.lock.json and changed the path in app.module file. Then i build the project and run command for ssr, it works fine for me.

Thanks @satishsomani

aksheyjhalani27 avatar Jul 31 '18 09:07 aksheyjhalani27