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

@ -3,13 +3,13 @@ import {Component, ViewEncapsulation} from '@angular/core';
import {AppState} from '../../../app.state';
import {ProfilePicturePipe} from '../../pipes';
import {MsgCenter} from '../../components/msgCenter';
import {ScrollPosition} from '../../directives';
import {BaScrollPosition} from '../../directives';
@Component({
selector: 'page-top',
styles: [require('./pageTop.scss')],
template: require('./pageTop.html'),
directives: [MsgCenter, ScrollPosition],
directives: [MsgCenter, BaScrollPosition],
pipes: [ProfilePicturePipe],
encapsulation: ViewEncapsulation.None
})

View file

@ -1,4 +1,4 @@
<div class="page-top clearfix" scrollPosition maxHeight="50" (scrollChange)="scrolledChanged($event)"
<div class="page-top clearfix" baScrollPosition maxHeight="50" (scrollChange)="scrolledChanged($event)"
[ngClass]="{scrolled: isScrolled}">
<a href="#/pages/dashboard" class="al-logo clearfix"><span>ng2-</span>admin</a>
<a (click)="toggleMenu()" class="collapse-menu-link ion-navicon"></a>