Fix: Move SVG to public folder for Angular 21 asset serving
This commit is contained in:
@@ -14,7 +14,7 @@ export class MapSvgComponent implements AfterViewInit {
|
||||
|
||||
ngAfterViewInit(): void {
|
||||
// Load SVG file and inject it into the component
|
||||
this.http.get('assets/map-image.svg', { responseType: 'text' }).subscribe({
|
||||
this.http.get('map-image.svg', { responseType: 'text' }).subscribe({
|
||||
next: (svgContent) => {
|
||||
const container = this.elementRef.nativeElement.querySelector('.svg-container');
|
||||
if (container) {
|
||||
|
||||
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 1.2 MiB |
Reference in New Issue
Block a user