Contents
see List작성일 2022. 06. 11.
router.push({name : "Test" ,params : {test : "33"}});
<router-link :to="{name: 'Test', params: {test: '33'}}">회원가입</router-link>
//이경우 post /test
router.push({path : "/test",query : { test : "33"}});
<router-link :to="{name: 'mainCommLoginRegister', query: {test: 'dog'}}">회원가입</router-link>
//이경우 get /test?test=33
router.push({path : "/test/33"}});
<router-link to="/test/33">회원가입</router-link>
//이경우 get /test/33
//받을때
const route = useRoute();
route.query.test // get
route.params.test //post
router.js
/test/33 경우 :test 를 붙여줘야함
{
path: '/test/:test',
name: 'test',
component: () => import('@/test'),
},
/test or /test?test=33 경우는 제외해도됨
{
path: '/test',
name: 'test',
component: () => import('@/test'),
},
javascript
| No | 작성일 | Title |
|---|---|---|
| 1180 | 2016. 11. 28. | [ AngularJS ] angularJs jquery selector |
| 1141 | 2016. 11. 01. | [ AngularJS ] ng-if 의 경우 상위 디렉브를 생성한다. |
| 1139 | 2016. 10. 21. | [ javascript ] 반응형 웹에서 PC 버전보기 구현 |
| 1076 | 2016. 09. 09. | [ AngularJS ] promise then 사용 |
| 1075 | 2016. 09. 07. | [ AngularJS ] 형제 태그 ng-repeat |
| 1074 | 2016. 09. 07. | [ AngularJS ] 의 이벤트 전파 |
| 1041 | 2016. 08. 18. | [ AngularJS ] json parsing spring ajax (and $$hashKey error ) |
| 1040 | 2016. 08. 18. | [ AngularJS ] select option ng-options |
| 1039 | 2016. 08. 18. | [ AngularJS ] ng-repeat 에서 ng-model 사용시 제대로 작동안할때 |
| 1038 | 2016. 08. 16. | [ AngularJS ] 어느 위치에서나 scope 에 접근하기 (전역,지역) |