ngx-prompt-kit

Auth Image

ngx-prompt-kit original — not part of ibelick/prompt-kit

pk-auth-image fetches an image via HttpClient (so your auth interceptor attaches the token), shows the blob as an object URL, and revokes it on change/destroy. Skeleton while loading; a fallback (project [error] content) on failure.

Examples

Loads via HttpClient

Here it fetches a same-origin asset. In your app, point [url] at a token-protected endpoint — the auth interceptor adds the header automatically.

Loaded
Error fallback

Installation

Add the auth-image component. Requires provideHttpClient().

ng generate ngx-prompt-kit:auth-image