Skip to content

cbernth/AngularDemo

Repository files navigation

AngularDemo

An Angular 13 / .NET 6 demo application created with VS 2022 using the Standalone Typescript Angular Project template

001-1

Getting started

Prerequisites

Running

  • Build and run the Angular.Demo.API project VS
  • Run yarn run dev:ssr from the command line in the Angular.Demo.UI folder

Technical details

Server Side vs Client Side urls

URLs must be absolute on the server side on the Client Side they must be relative to be avoid environment specifics like site names/subsite names.

This is how the URLs should look - and it's all handled by the AppConfigService via the environment.ts / environment.prod.ts configuration files:

Context Type Development Production
Server (SSR) Assets http://localhost:nnnn/assets/ http://localhost:nnnn/assets/
Server (SSR) API http://localhost:nnnn/api/ http://localhost:nnnn/api/
Client (Browser) Assets /assets/ /assets/
Client (Browser) API /api/ /api/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published