diff --git a/README.md b/README.md index 2f597d0..ccab897 100644 --- a/README.md +++ b/README.md @@ -1,29 +1,29 @@ -## ng2-lazyload-image +## ng-lazyload-image -> Lazy image loader for Angular 2 +> Lazy image loader for Angular ≥ v2 -[![Build Status](https://travis-ci.org/tjoskar/ng2-lazyload-image.svg?branch=master)](https://travis-ci.org/tjoskar/ng2-lazyload-image) [![npm version](https://badge.fury.io/js/ng2-lazyload-image.svg)](https://badge.fury.io/js/ng2-lazyload-image) -[![npm](https://img.shields.io/npm/l/ng2-lazyload-image.svg?maxAge=2592000)]() +[![Build Status](https://travis-ci.org/tjoskar/ng-lazyload-image.svg?branch=master)](https://travis-ci.org/tjoskar/ng-lazyload-image) [![npm version](https://badge.fury.io/js/ng-lazyload-image.svg)](https://badge.fury.io/js/ng-lazyload-image) +[![npm](https://img.shields.io/npm/l/ng-lazyload-image.svg?maxAge=2592000)]() [![Build Status](https://saucelabs.com/browser-matrix/tjoskar.svg)](https://saucelabs.com/beta/builds/c7a7d7683d6843f79ae4118f737769c5) About 150 loc and no dependencies (except for angular and rxjs of course) -Demo: http://tjoskar.github.io/ng2-lazyload-image/ +Demo: http://tjoskar.github.io/ng-lazyload-image/ ### Requirement The browser you targeting need to have support of `WeakMap`. If you need to support an older browser (like IE or Safari) you will need to include polyfill for `WeakMap` (see https://github.com/zloirock/core-js for example). ### Installation ``` -$ npm install ng2-lazyload-image --save +$ npm install ng-lazyload-image --save ``` -And then include it in your module (see [app.module.ts](https://github.com/tjoskar/ng2-lazyload-image/blob/master/example/app.module.ts)): +And then include it in your module (see [app.module.ts](https://github.com/tjoskar/ng-lazyload-image/blob/master/example/app.module.ts)): ```javascript import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; -import { LazyLoadImageModule } from 'ng2-lazyload-image'; +import { LazyLoadImageModule } from 'ng-lazyload-image'; import { AppComponent } from './app.component'; @NgModule({ @@ -61,7 +61,7 @@ It also supports background images, by using `backgroundImage`:
` }) diff --git a/changelog.md b/changelog.md index 9018e9f..8b372bd 100644 --- a/changelog.md +++ b/changelog.md @@ -1,11 +1,20 @@ # Changelog +## 3.0.0 (2017-03-25) + +### Feature +* Upgrade to Angular v4 +* Renamed project to ng-lazyload-image + +### Braking changes +* Renamed css class names from `ng2-lazyloaded` and `ng2-lazyloading` to `ng-lazyloaded` and `ng-lazyloading` respectively + ## 2.4.0 (2017-02-19) ### Features -* Make it possible to use default image as background. closes [#115](https://github.com/tjoskar/ng2-lazyload-image/issues/115). Thanks to [igoralemasow](https://github.com/igoralemasow) :tada: +* Make it possible to use default image as background. closes [#115](https://github.com/tjoskar/ng-lazyload-image/issues/115). Thanks to [igoralemasow](https://github.com/igoralemasow) :tada: ## 2.3.2 (2017-02-07) ### Bug Fixes -* Remove `src` as directive input. closes [#44](https://github.com/tjoskar/ng2-lazyload-image/issues/44) +* Remove `src` as directive input. closes [#44](https://github.com/tjoskar/ng-lazyload-image/issues/44) diff --git a/dist/package.json b/dist/package.json index c16f23c..16c0c6f 100644 --- a/dist/package.json +++ b/dist/package.json @@ -1,25 +1,25 @@ { - "name": "ng2-lazyload-image", - "version": "2.4.0", - "description": "Lazy image loader for Angular 2", + "name": "ng-lazyload-image", + "version": "3.0.0", + "description": "Lazy image loader for Angular > v2", "main": "index.js", "repository": { "type": "git", - "url": "git+https://github.com/tjoskar/ng2-lazyload-image.git" + "url": "git+https://github.com/tjoskar/ng-lazyload-image.git" }, "keywords": [ "lazy-load", "lazy-image", - "angular2" + "angular" ], "author": "Oskar Karlsson