scrollPosition - baScrollPosition

This commit is contained in:
nixa 2016-05-18 16:45:01 +03:00
parent 8b673b1f48
commit 5f360a73a8
6 changed files with 12 additions and 11 deletions

View file

@ -1,15 +1,16 @@
import {Directive, Input, Output, EventEmitter, HostListener} from '@angular/core';
@Directive({
selector: '[scrollPosition]'
selector: '[baScrollPosition]'
})
export class ScrollPosition {
@Input() maxHeight:Number;
@Output() scrollChange:EventEmitter<Boolean> = new EventEmitter<Boolean>();
export class BaScrollPosition {
private _isScrolled:Boolean;
@Input() public maxHeight:number;
@Output() public scrollChange:EventEmitter<boolean> = new EventEmitter<boolean>();
ngOnInit() {
private _isScrolled:boolean;
public ngOnInit():void {
this.onWindowScroll();
}

View file

@ -0,0 +1 @@
export * from './baScrollPosition.directive.ts';

View file

@ -1,2 +1,2 @@
export * from './scrollPosition';
export * from './baScrollPosition';
export * from './baThemeRun';

View file

@ -1 +0,0 @@
export * from './scrollPosition.directive.ts';