2016-04-21 21:49:53 +03:00
|
|
|
import {Component, ViewEncapsulation} from 'angular2/core';
|
|
|
|
|
|
2016-04-25 19:33:47 +03:00
|
|
|
import {MsgCenter} from '../msgCenter';
|
2016-04-27 11:06:16 +03:00
|
|
|
import {ProfilePicturePipe} from '../pipes/image/profile-picture.pipe';
|
2016-04-27 18:21:52 +03:00
|
|
|
import {ScrollPosition} from '../directives/scrollPosition.directive';
|
2016-04-25 19:33:47 +03:00
|
|
|
|
2016-04-21 21:49:53 +03:00
|
|
|
@Component({
|
|
|
|
|
selector: 'page-top',
|
|
|
|
|
styles: [ require('./pageTop.scss') ],
|
2016-04-25 19:33:47 +03:00
|
|
|
template: require('./pageTop.html'),
|
2016-04-27 18:21:52 +03:00
|
|
|
directives: [MsgCenter, ScrollPosition],
|
2016-04-27 11:06:16 +03:00
|
|
|
pipes: [ProfilePicturePipe]
|
2016-04-21 21:49:53 +03:00
|
|
|
})
|
2016-04-27 18:21:52 +03:00
|
|
|
export class PageTop {
|
|
|
|
|
isScrolled: Boolean = false;
|
|
|
|
|
|
|
|
|
|
scrolledChanged(isScrolled) {
|
|
|
|
|
this.isScrolled = isScrolled;
|
|
|
|
|
}
|
|
|
|
|
}
|