[Vue] Vue-Cli๋กœ Vue ์‹œ์ž‘ํ•ด๋ณด๊ธฐ

๐Ÿ’ก ๊ธฐ์กด์—๋Š” parcel์‚ฌ์šฉํ•˜์„œ ๋ฒˆ๋“ค๋งํ•˜๊ณ  vue@cli ๋Š” ์ตํžˆ๊ธฐ ๋ฒˆ์žก์Šค๋Ÿฝ๋‹ค๊ณ  ์ƒ๊ฐ๋˜์–ด์„œ; ์‚ฌ์šฉํ•˜์ง€ ์•Š์•˜์—ˆ๋Š”๋ฐ, vue@cli ์‚ฌ์šฉ๋„ ์•Œ๊ณ ๋ณด๋ฉด ์‰ฝ๋‹ค. ์•Œ์•„๋ณด์ž (์•„๋ž˜ ์„ค์ •์€ ํžˆ์Šคํ† ๋ฆฌ๋ชจ๋“œ (url์— # ์•ˆ๋“ค์–ด๊ฐ€๋Š”) ๋ฒ„์ „์ž„)

Continue reading

[React] Springboot + react ๊ธฐ๋ณธ์„ธํŒ…

๊ฒฐ๊ตญ ๋ฆฌ์•กํŠธ์—๊นŒ์ง€ ์†์„ ๋Œ€๊ฒŒ๋˜์—ˆ๋‹ค.. (์–ด๋””๊นŒ์ง€๊ฐ€๋Š”๊ฐ€ ๋‚˜์˜ ํ”„๋ก ํŠธ์—”๋“œ ๊ธฐ์ˆ ์Šคํƒ)
์–ด์จŒ๋“ , springboot + react ๋ฅผ ํ•œ ํ”„๋กœ์ ํŠธ์—์„œ ์‚ฌ์šฉํ•˜๋Š” ์„ธํŒ…๋ฐฉ๋ฒ•์„ ์•Œ์•„๋ณด์ž

Continue reading

[React] ์ด๋ฒคํŠธํ•ธ๋“ค๋ง

์‚ฌ์šฉ์ž๊ฐ€ ์›น DOM ์š”์†Œ๋“ค๊ณผ ์ƒํ˜ธ์ž‘์šฉํ•˜๋Š”๊ฒƒ์„ ์ด๋ฒคํŠธ๋ผ๊ณ ํ•จ ๋ฆฌ์•กํŠธ์—์„œ ์ด๋ฒคํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๋Š”๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์•Œ์•„๋ณด์ž

Continue reading

[React] ๋ฆฌ์•กํŠธ ์ปดํฌ๋„ŒํŠธ

์ปดํฌ๋„ŒํŠธ๋Š” ์‚ฌ์šฉ์ž๊ฐ€ ๋ณด๋Š” ํ™”๋ฉด์„ ๊ตฌ์„ฑํ•˜๋Š” ๊ตฌ์„ฑ์š”์†Œ์ด๋‹ค. ์ปดํฌ๋„ŒํŠธ๋“ค์€ ๋ฐ์ดํ„ฐ๊ฐ€ ์ฃผ์–ด์กŒ์„๋•Œ ์ด๋ฅผ ๋งž์ถ”์–ด UI๋ฅผ ๋งŒ๋“ค์–ด์ฃผ๊ณ , ํ™”๋ฉด์—์„œ ๋‚˜ํƒ€๋‚ ๋•Œ, ์‚ฌ๋ผ์งˆ๋•Œ, ๋ณ€ํ™”๊ฐ€ ์ผ์–ด๋‚ ๋•Œ ์ฃผ์–ด์ง„ ์ž‘์—…๋“ค์„ ์ฒ˜๋ฆฌํ•  ์ˆ˜ ์žˆ๊ณ , ์ž„์˜ ๋ฉ”์„œ๋“œ๋ฅผ ๋งŒ๋“ค์–ด ํŠน๋ณ„ํ•œ ๊ธฐ๋Šฅ์„ ๋ถ™์—ฌ์ค„์ˆ˜์žˆ๋‹ค.
(โ‡’ ์ž๋ฐ”์˜ ํด๋ž˜์Šค๊ฐ™์€๋†ˆ๋“ค)

Continue reading

eventBus ์‚ฌ์šฉ์‹œ ์ค‘๋ณตํ˜ธ์ถœ๋ฐฉ์ง€

A์ปดํฌ๋„ŒํŠธ์˜ ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ B ์ปดํฌ๋„ŒํŠธ(๋ชจ๋‹ฌ)์˜ ์ด๋ฒคํŠธ๋ฅผ ํ˜ธ์ถœํ•˜๋Š” ์ฝ”๋“œ๋ฅผ ์งฐ๋Š”๋ฐ, ๋ฒ„ํŠผ๋ˆ„๋ฅผ๋•Œ๋งˆ๋‹ค B์ปดํฌ๋„ŒํŠธ์˜ ์ด๋ฒคํŠธ๊ฐ€ 2๋ฒˆ์”ฉ (์–ด์ฉ”๋•Œ๋Š” 4๋ฒˆ์”ฉ ใ…กใ…ก) ํ˜ธ์ถœ๋˜๋Š” ํ˜„์ƒ์ด ์žˆ์—ˆ๋‹ค.

Continue reading

[vue] router ์ด๋™์‹œ component loadํ•˜๊ธฐ

์—ฌ๋Ÿฌ ์ž์‹ ์ปดํฌ๋„ŒํŠธ๋กœ ๊ตฌ์„ฑ๋œ ๋ทฐ ์ปดํฌ๋„ŒํŠธ๋ฅผ router pushํ•˜๋ฉด ๋ถ€๋ชจ์ปดํฌ๋„ŒํŠธ๋งŒ ๋กœ๋“œ๋˜๊ณ  ์ž์‹์ปดํฌ๋„ŒํŠธ๋Š” ๊ทธ๋Œ€๋กœ์ผ๋•Œ๊ฐ€์žˆ๋‹ค. ๊ทธ๋Ÿด๋•Œ๋Š” ์•„๋ž˜์™€ ๊ฐ™์ด router-view๋ฅผ ์„ค์ •ํ•ด์ฃผ๋ฉด ๋œ๋‹ค.

Continue reading

[vue] b-pagination ์˜ page-click ํŽ˜์ด์ง• ๊ตฌํ˜„

vue bootstrap์—๋Š” b-pagination ์ด๋ผ๋Š” ํŽ˜์ด์ง•์„ ๋„์™€์ฃผ๋Š” ์ปดํฌ๋„ŒํŠธ๊ฐ€ ์žˆ๋‹ค. ํŽ˜์ด์ง• ์ด๋™ ๋ฒ„ํŠผ์ด๋ผ๋Š”๊ฒŒ ๋ชปํ• ๊ฑด ์•„๋‹ˆ์ง€๋งŒ ๋‚ด๊ฐ€ ๊ตฌํ˜„ํ•˜๋ ค๋ฉด ๋งค์šฐ ๊ท€์ฐฎ์€๋ฐ ์ด ์ปดํฌ๋„ŒํŠธ ํ•˜๋‚˜ ์“ฐ๋ฉด ๋งค์šฐ ์‰ฝ๊ฒŒ ํ•ด๊ฒฐ ๊ฐ€๋Šฅํ•˜๋‹ค.

Continue reading

Pagination


ยฉ 2020. by berrrrr

Powered by berrrrr