project structure update for more accurate import

This commit is contained in:
nixa 2016-05-04 11:49:36 +03:00
parent 36288562e6
commit 945cdb7e4f
43 changed files with 47 additions and 42 deletions

View file

@ -0,0 +1,31 @@
import {Component} from 'angular2/core';
import {ThemeGlobal} from '../../../theme';
import {ProfilePicturePipe} from '../../pipes';
import {MsgCenter} from '../../components/msgCenter';
import {ScrollPosition} from '../../directives';
@Component({
selector: 'page-top',
styles: [require('./pageTop.scss')],
template: require('./pageTop.html'),
directives: [MsgCenter, ScrollPosition],
pipes: [ProfilePicturePipe]
})
export class PageTop {
isScrolled:Boolean = false;
isMenuCollapsed:boolean = false;
constructor(private _themeGlobal:ThemeGlobal) {
}
toggleMenu() {
this.isMenuCollapsed = !this.isMenuCollapsed;
this._themeGlobal.setData('menu.isCollapsed', this.isMenuCollapsed);
}
scrolledChanged(isScrolled) {
this.isScrolled = isScrolled;
}
}