라우터 새로고침
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
- 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
- 페이스북 로그인
- Redux
- 파이썬
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함