mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-01-28 12:16:10 +01:00
scrollPosition - baScrollPosition
This commit is contained in:
parent
8b673b1f48
commit
5f360a73a8
6 changed files with 12 additions and 11 deletions
|
|
@ -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
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue