Questions tagged [single-page-application]

A single-page application (SPA) is a web application that fits on a single web page with the goal of providing a more fluid user experience akin to a desktop application.

A single-page application (SPA), also known as single-page interface (SPI), is a web application or web site that fits on a single web page with the goal of providing a more fluid user experience akin to a desktop application.

In an SPA, either all necessary code – HTML, JavaScript, and CSS – is retrieved with a single page load, or partial changes are performed loading new code on demand from the web server, usually driven by user actions. The page does not automatically reload during user interaction with the application, nor does control transfer to another page. Updates to the displayed page may or may not involve interaction with a server.

Resources

5306 questions
20
votes
2 answers

Use Active Directory with Web API for SPA

I am building single page application and I would like to know user's identity. We have Active Directory in our intranet but I don't know much about it. I am able to use code like this to verify username and password. using(PrincipalContext pc = new…
20
votes
4 answers

RESTful archiving of entities in WebAPI

I've implemented CRUD functionality pretty restfully in my WebAPI project. I'm now trying to implement Archiving of objects (not quite deleting) - if only there were an ARCHIVE HTTP method. I see two options: 1) Have isArchived as a property of…
SB2055
  • 12,272
  • 32
  • 97
  • 202
19
votes
1 answer

How to let sitemap generator fully crawl Angular router for SPA?

I am trying to generate a sitemap for my webpage. The sitemap generators online only show me a homepage on xml file. -
GreedyAi
  • 2,709
  • 4
  • 29
  • 55
19
votes
3 answers

How do you handle HTML Metadata in Progressive Web Apps (PWA)

I'm trying to get my head around handling metadata in the head section of my html when writing a Progressive Web App (PWA). By metadata, I mean: title & description meta tags Atom feed link URL meta tag OpenSearch meta tag Google Structured…
19
votes
1 answer

Is it necessary to refresh tokens every request?

I'm here because I wasn't satisfied with what I found on google. I am generally building SPA's, so for me the process was simple: At succesful login generate a jwt and use it for every request I make from the client. Someone told me that I should…
John
  • 1,081
  • 1
  • 9
  • 34
18
votes
1 answer

Hosting multiple SPA web apps on S3 + Cloudfront under same URL

I have two static web apps (create-react-apps) that are currently in two separate S3 buckets. Both buckets are configured for public read + static web hosting, and visiting their S3 hosted URLs correctly display the sites. Bucket 1 - First App: …
18
votes
3 answers

GTM randomly skips initial pageview in single page app

I have Pageview tag in Google Tag Manager that tracks SPA pageviews, identical to the one described in this guide. Basically it is Universal Analytics with linked Google Analytics ID that is triggered on History Change (at some point All Pages…
18
votes
1 answer

SystemJS vs Webpack for Angular 2 applications

We are starting a new Angular2 SPA and I am looking into whether to use SystemJS as described in the Angular Quickstart tutorial (https://angular.io/guide/quickstart) or Webpack (https://angular.io/docs/ts/latest/guide/webpack.html). Researching…
bka
  • 221
  • 2
  • 7
18
votes
4 answers

what is the purpose of use abstract state?

I am working on my tutorial AngularUI project. I read all about states, nested states and abstract states. The problem is that I can't understand why and when I should use abstract state?  
18
votes
3 answers

Getting Backbutton to work in single page website and implementing "speaking" URLs

I have a single page website and would like to achieve the following: back button working as if it was a normal website and instead of say, www.mysite.com/index.php?p=#this-is-a-great-product I'd like to have this…
suri
  • 363
  • 1
  • 4
  • 12
18
votes
2 answers

RESTFul Authentication with WebAPI

I have a web service built with WebAPI that accepts JSON requests and responds accordingly. The core architecture is built but there isn't any authentication/authorization. After a lot of googling and poking around sample projects, I'm not sure…
SB2055
  • 12,272
  • 32
  • 97
  • 202
17
votes
2 answers

Configure Spring Framework 5.3+, Spring Boot 2.3+ Routing for SPA frontend

I have a simple frontend application made using Angular. All routings are handled by Angular so I want Spring boot to forward all page traffics to "/" so angular routing can handle them. There are already some known answers in stackoverflow. They…
17
votes
1 answer

Vue.js single file component 'name' not honored in consumer

Please pardon my syntax, I'm new to vue.js and may not be getting the terms correct. I've got a single file component (SFC) named CreateTodo.vue. I've given it the name 'create-todo-item' (in the name property). When I import it in my app.vue file,…
anu start
  • 395
  • 2
  • 10
17
votes
1 answer

How can you control memory usage in Cordova?

I'm on iOS now, but the question applies to Android too. I'm looking at the memory graph in Xcode, and my app crashes whenever it hits around 240MB, I believe iOS is killing it because it's taking too much memory. I can consistently get it to crash…
Loren
  • 13,903
  • 8
  • 48
  • 79
17
votes
5 answers

Single Page App + Amazon S3 + Amazon CloudFront + Prerender.io - how to set up?

I have single page app built with Backbone.js. I host app (app consists of static files only) on Amazon S3. I use CloudFront as a Bucket CDN. App is accessed by https://myapp.com -> https://abcdefgh34545.cloudfront.com ->…
user606521
  • 14,486
  • 30
  • 113
  • 204