일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 품질 표준
- phantomjs
- ISO25000
- ISO25010
- pylint
- Cheerio
- 신한대학교
- 소프트웨어
- 네이버 클라우드 플랫폼
- SW
- angular2 google analytics
- Nexus
- 도커
- 구글 클라우드 플랫폼
- REQUEST
- docker
- angular2
- 서버
- nodejs
- cyber.shinhan
- vscode
- angular-cli
- npm repository
- 크롤링
- 품질
- ISO9126
- RxJS
- casperJS
- 페이지구분
- angular
- Today
- Total
목록JS/Angular (3)
나를 위한 기록들
angular2 구글 아날리틱스 페이지구분, angular2 google analytics 기존 방법 index.html에 스크립트 추가 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga..
스크롤 이벤트 값 가져오기 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()..
Rxjs를 이용해서 데이터를 공유하는 방법 서비스// shared-service.ts import { Observable } from 'rxjs/Observable';import { Injectable } from '@angular/core';import { Subject } from 'rxjs/Subject'; @Injectable()export class SharedService { private emitChangeSource = new Subject(); changeEmitted$ = this.emitChangeSource.asObservable(); emitChange(change: any) { this.emitChangeSource.next(change); }} 데이터 보내기import { Co..