update to alpha.28)

domElement renamed to nativeElement
This commit is contained in:
Adam Bradley
2015-06-27 12:12:16 -05:00
parent a97527e0ad
commit 504ab46eb3
31 changed files with 5199 additions and 4348 deletions

View File

@ -75,7 +75,7 @@ export class ParallaxEffect {
constructor(
elementRef: ElementRef
) {
this.domElement = elementRef.domElement;
this.ele = elementRef.nativeElement;
setTimeout(() => {
Object.observe(this, (changes) => {
@ -88,7 +88,7 @@ export class ParallaxEffect {
});
}
parallaxItems() {
let list = this.domElement;
let list = this.ele;
console.log('Moving items', this.parallax);
var x = Math.max(0, (1 - this.parallax) * 20);
var y = 0;//Math.max(0, (1 - this.parallax) * 10);

View File

@ -37,8 +37,8 @@ export class ParallaxEffect {
content: Content,
elementRef: ElementRef
) {
this.domElement = elementRef.domElement;
this.scroller = this.domElement.querySelector('.scroll-content');
this.ele = elementRef.nativeElement;
this.scroller = this.ele.querySelector('.scroll-content');
this.scroller.addEventListener('scroll', (e) => {
//this.counter.innerHTML = e.target.scrollTop;
dom.raf(() => {