Questions tagged single-page-application

Explore the latest questions and answers asked by our top developers.

How to pass data from Parent app to Child app through binding parameter to the URL in Single SPA Angular?

I have created two apps. One is the parent app and another one is the child app. Now suppose I have created one product component in the parent app and defined the path inside the routing file. { path: ‘product/:appId’, component: ProductComponent } so here I am mounting my child app inside the product component, […]

How to inform JAWS, VoiceOver or other assitive technogy tools the DOM has been changed?

I have an Angular project where the SPA renders the pages. But some pages load huge amount of datas, what takes a lot of time. In normal cases the screen readers can handle a small daley in the data loading. But in this case the screen reader lost in space and I can’t inform it […]

How to inform JAWS, VoiceOver or other assistive technology tools the DOM has been changed?

I have an Angular project where the SPA renders the pages. But some pages load huge amount of datas, what takes a lot of time. In normal cases the screen readers can handle a small daley in the data loading. But in this case the screen reader lost in space and I can’t inform it […]

Best way to store auth token in angular app

My angular app connects to an AdonisJS rest api thatrequires an auth token to work. This token is generated on succesful login however storing it for future requests is a problem. Ive tried to use window.sessionStorage but unfortunately this remains undefined until the user refreshes the page. Which means my angular app doesent get the […]

In SPA application – disconnect socket connection on browser page refresh

In my angular application, I have written code to disconnect socket on ngOnDestroy lifecycle hook that is executed when we navigate to some other page and the component is destroyed. But the problem arises when the whole application is refreshed by hitting on the browser refresh event, which doesn’t execute the ngOnDestroy event of the […]

Angular SSR configuration on Azure app service

I work with angular v10 SSR with .net core 3.1. Downloaded the sample code from here: https://angular.io/guide/universal and deployed to Azure Appservice. On azure Appservice Node.js run and start server/main.js. here is the result: My questions: Is the correct way of working like: first time load static files SSR and then switch to CSR? On […]

Initializing Angular with Server Side Data from ASP.Net Core

I have an Angular12/.Net_Core application that I need to initialize with some information from the server only at the first load of the Angular app, and not on every request. I don’t want to use Server Side Rendering that’s described here due to its drawbacks. Are there any other techniques to achieve that? Source: Angular […]

Skipping redundant operations in script

I am writing a SPA with the following architecture: The frontend uses Angular and its source is in the frontend directory. The backend uses ASP Core 5 and its source is in the backend directory. Instead of deploying both separately, I am packing frontend and the backend together in a single docker image for convenience. […]

VS Code how to debug Angular SPA with built-in JavaScript debugger

So, I have had debugging setup using Chrome debug extension and following launch.json: "version": "0.2.0", "compounds": [ { "name": ".Net + Browser", "configurations": [ ".NET Core Launch (console)", "Launch Chrome" ] } ], "configurations": [ { "name": ".NET Core Launch (console)", "type": "coreclr", "request": "launch", "preLaunchTask": "build", "program": "${workspaceFolder}/bin/Debug/net6.0/grad-ludbreg-gis-demo.dll", "args": [], "cwd": "${workspaceFolder}", "stopAtEntry": false, […]

How do SPA web apps validate request headers?

I’m trying to host multiple SPA web apps (React, Vue and Angular) on Azure Blob Storage as static website. I’d like to use Azure Front Door with WAF and block direct access to Azure Storage Account public endpoint (https://example.z23.web.core.windows.net/) so nobody can bypass security on Front Door. As Azure recommends, we should check for X-Azure-FDID […]

1 9

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq