라우터 새로고침
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
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- localStorage
- python3
- CSS
- 파이썬
- React-router
- data component module
- data grid component
- Router
- data gird component
- Python
- react
- https://www.tistory.com/auth/logout/
- JPA
- Java
- angular router
- MySQL
- Spring
- 파이썬3
- jQuery
- Redux
- 페이스북 로그인
- JavaScript
- JSON
- mobx
- facebook login
- data table component
- Spring Boot
- data component
- Angular
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
글 보관함