본문 바로가기 메뉴 바로가기

CheolCheol Dev Note

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

CheolCheol Dev Note

검색하기 폼
  • 분류 전체보기 (146)
    • BackEnd (64)
      • Node.js (30)
      • Java (34)
    • FrontEnd (41)
      • Angular (36)
      • CSS (5)
    • DB (7)
      • Mysql (7)
    • DevOps (6)
      • AWS (1)
      • Docker (1)
      • 네트워크 (3)
      • K8S (1)
    • 기타 (28)
      • 기타 글들 (16)
      • 인앱 결제 서버 (Old) (3)
      • 페이스북 로그인 구현 (Old) (7)
  • 방명록

angular 새로고침 (1)
라우터 새로고침

SPA(Single Page Application) 인 Angular는 자신의 라우터링크를 누르면 아무 반응이 없는데 이 대신 새로고침으로 하게 하는 편법이 있다. import { Router, NavigationEnd } from '@angular/router'; ngOnInit(){ this.router.routeReuseStrategy.shouldReuseRoute = function(){ return false; }; this.router.events.subscribe((evt) => { if (evt instanceof NavigationEnd) { this.router.navigated = false; window.scrollTo(0, 0); } }); } 참조 : https://github...

FrontEnd/Angular 2018. 6. 26. 14:48
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • react
  • MySQL
  • jQuery
  • Router
  • JavaScript
  • data table component
  • data grid component
  • 파이썬3
  • Angular
  • facebook login
  • angular router
  • localStorage
  • Spring
  • python3
  • Java
  • JSON
  • data gird component
  • data component module
  • mobx
  • JPA
  • Python
  • Spring Boot
  • CSS
  • https://www.tistory.com/auth/logout/
  • data component
  • React-router
  • Facebook
  • 페이스북 로그인
  • Redux
  • 파이썬
more
«   2025/06   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바