Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- ISO9126
- Nexus
- 도커
- npm repository
- 품질 표준
- vscode
- angular
- 소프트웨어
- RxJS
- casperJS
- 품질
- angular2
- 네이버 클라우드 플랫폼
- ISO25010
- docker
- Cheerio
- ISO25000
- 신한대학교
- REQUEST
- cyber.shinhan
- 크롤링
- angular2 google analytics
- phantomjs
- pylint
- 서버
- nodejs
- 구글 클라우드 플랫폼
- 페이지구분
- SW
- angular-cli
Archives
- Today
- Total
나를 위한 기록들
Angular2, 4 스크롤 이벤트 본문
스크롤 이벤트 값 가져오기
import { Component, OnInit, HostListener } from '@angular/core';
@Component({
selector: 'app-scroll',
templateUrl: './scroll.component.html',
styleUrls: ['./scroll.component.css']
})
export class ScrollComponent implements OnInit {
@HostListener('window:scroll', ['$event']) onScrollEvent($event){
console.log($event); // 스크롤 정보
console.log("scrolling");
}
constructor() { }
ngOnInit() {
}
}
'JS > Angular' 카테고리의 다른 글
Angular2 with google analytics (구글 아날리틱스 페이지구분) (0) | 2017.09.10 |
---|---|
Angular2 rxjs 데이터 공유하기 (0) | 2017.09.04 |
Comments