-```
-may break, because the browser resolves them relative to the host page.
-
-To fix this, we provide:
-
-src/app/services/assets-public-path.directive.ts
-
-This directive automatically rewrites any src / href that starts with assets/ (or /assets/) to:
-
-```js
-__webpack_public_path__ + 'assets/...'
-```
-Import the directive in a component (Standalone)
-Add the directive to the component imports:
-
-```js
-import { CommonModule } from '@angular/common';
-import { Component } from '@angular/core';
-import { AssetsPublicPathDirective } from '../services/assets-public-path.directive';
-
-@Component({
- selector: 'custom-example',
- standalone: true,
- templateUrl: './example.component.html',
- styleUrls: ['./example.component.scss'],
- imports: [CommonModule, AssetsPublicPathDirective],
-})
-export class ExampleComponent {}
-```
-If the component is not standalone (NgModule-based), import and export the directive from a shared module, and include that module where your components are declared.
-
-Use it in HTML
-After the directive is imported, you can use plain assets/... paths in templates:
-
-
-```html
-
-
-
-
-
-```
-
-### Supported Elements:
-- `