angular2-useful-swiper
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -1,3 +0,3 @@ | ||
import { OnInit, ElementRef, AfterViewChecked } from '@angular/core'; | ||
export declare class SwiperComponent implements OnInit, AfterViewChecked { | ||
import { ElementRef, AfterViewInit, AfterViewChecked } from '@angular/core'; | ||
export declare class SwiperComponent implements AfterViewInit, AfterViewChecked { | ||
private elementRef; | ||
@@ -9,4 +9,4 @@ config: Object; | ||
constructor(elementRef: ElementRef); | ||
ngOnInit(): void; | ||
ngAfterViewInit(): void; | ||
ngAfterViewChecked(): void; | ||
} |
@@ -17,3 +17,3 @@ "use strict"; | ||
} | ||
SwiperComponent.prototype.ngOnInit = function () { | ||
SwiperComponent.prototype.ngAfterViewInit = function () { | ||
this.swiperWrapper = this.elementRef.nativeElement.querySelector('.swiper-wrapper'); | ||
@@ -20,0 +20,0 @@ this.slideCount = this.swiperWrapper.childElementCount; |
{ | ||
"name": "angular2-useful-swiper", | ||
"version": "2.0.1", | ||
"description": "Use iDangero.us's Swiper in Angular 2.", | ||
"version": "2.0.2", | ||
"description": "Use iDangero.us's Swiper in Angular 2.", | ||
"directories": {}, | ||
@@ -33,23 +33,15 @@ "files": [ | ||
"peerDependencies": { | ||
"@angular/core": "2.0.0" | ||
"@angular/core": "^2.0.0" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@angular/common": "2.0.0", | ||
"@angular/compiler": "2.0.0", | ||
"@angular/core": "2.0.0", | ||
"@angular/forms": "2.0.0", | ||
"@angular/http": "2.0.0", | ||
"@angular/platform-browser": "2.0.0", | ||
"@angular/platform-browser-dynamic": "2.0.0", | ||
"@angular/upgrade": "2.0.0", | ||
"@angular2-material/button": "2.0.0-alpha.8", | ||
"@angular2-material/card": "2.0.0-alpha.8", | ||
"@angular2-material/core": "2.0.0-alpha.8", | ||
"@angular2-material/icon": "2.0.0-alpha.8", | ||
"@angular2-material/input": "2.0.0-alpha.8", | ||
"@angular2-material/list": "2.0.0-alpha.8", | ||
"@angular2-material/progress-circle": "2.0.0-alpha.8", | ||
"@angular2-material/sidenav": "2.0.0-alpha.8", | ||
"@angular2-material/toolbar": "2.0.0-alpha.8", | ||
"@angular/common": "^2.0.0", | ||
"@angular/compiler": "^2.0.0", | ||
"@angular/core": "^2.0.0", | ||
"@angular/forms": "^2.0.0", | ||
"@angular/http": "^2.0.0", | ||
"@angular/platform-browser": "^2.0.0", | ||
"@angular/platform-browser-dynamic": "^2.0.0", | ||
"@angular/upgrade": "^2.0.0", | ||
"@angular/material": "^2.0.0-alpha.9", | ||
"canonical-path": "0.0.2", | ||
@@ -56,0 +48,0 @@ "concurrently": "^2.0.0", |
@@ -40,2 +40,13 @@ ##angular2-useful-swiper | ||
####or for angular-cli | ||
Add the package to **angular-cli.json** | ||
```json | ||
"packages": [ | ||
"node_modules/angular2-useful-swiper/lib" | ||
] | ||
``` | ||
###How to use it | ||
@@ -56,3 +67,3 @@ | ||
import { SwiperModule } from 'angular2-useful-swiper'; | ||
import { SwiperModule } from 'angular2-useful-swiper'; //or for angular-cli the path will be ../../node_modules/angular2-useful-swiper | ||
@@ -59,0 +70,0 @@ import { AppComponent } from './app.component'; |
Sorry, the diff of this file is not supported yet
30
145
13917