Get started with angular-retina CDN

MIT licensed

Angular-Retina: Lightweight library. Automatic high-res image replacement for Angular apps based on users device.

Tags:
  • angularjs
  • ngSrc
  • Retina
  • high resolution image

Stable version

Copied!

How to start using angular-retina CDN


import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AngularRetinaModule } from 'angular-retina'; // Import the library

import { AppComponent } from './app.component.ts';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    AngularRetinaModule // Add the library to imports
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

All versions