yuvalsuede / ng2-retina

ngRetina for angular 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ng2 Retina

Test Coverage Code Climate Build Status

Adds support for Retina displays.
If the browser runs on a Retina resolution and the reference image is available in double resoltion. It loads the Retina Image from the server.

Usage

Include the src/app/retina-image.ts file in your project.

Import the Directive in your App:

import {NgRetina} from './retina-image';

Use the directive in your HTML:

<img [ngRetina]="'img/angular-logo.png'" alt="">

About

ngRetina for angular 2

License:MIT License


Languages

Language:JavaScript 63.8%Language:TypeScript 21.4%Language:HTML 14.8%