Questions

agm dynamic marker not updating?

Maps forced refresh or mouse click on map? agm marker not updating? The solution you need to use “NgZone run” to update or refresh map. Step: 1 You have in import NgZone from angular/core import { NgZone } from ‘@angular/core’; Step: 2 Next you need to inject into constructor. Step: 3 Modify map event call you should have to keep…

Continue Reading

Questions

window is not defined in angular universal?

At server side need to render JavaScript code for that you have to install a mock browser package. The below code is at the top of the server.ts file For the above same thing you can do by different package command below The below code is at the top of the server.ts file build your project again with npm run build:ssr and…

Continue Reading

Questions

LocalStorage Is Not Defined In Angular Universal?

In this tutorial we will describe you how to implement local storage without getting any error:we will show you two way we can solve the local storage error. 1. from server side. 2. from client side. ERROR ReferenceError: localStorage is not defined 1. From server side Local store will render at server side by using localstoreage-poyfill library that hold proxy…

Continue Reading