์น๊ณต๋ทฐ49 vue.js ๋ผ์ฐํฐ ํ๋ผ๋ฏธํฐ ๊ฐ ์ฝ๊ธฐ null ์๋ฌ router-link to="/xxxx/detail"๋ก ์์ฑํ, ๋ฐ๋ ์ปดํฌ๋ํธ์์ this.$router.params.detail๋ก ์ฝ์ผ๋ ๊ณ์ ์ฝํ์ง๊ฐ ์์๋ค. Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'detail') router.js๋ ์ ๋๋ก ์ ํ ์ ํ๋๋ฐ ์ ์๋๋ ํ๋ค๊ฐ ๋ธ๋ก๊ทธ๊ธ์ ์ฝ๊ณ ๋์ this.$route.params.detail๋ก ์ฝ์ผ๋ ์ ์ฝํ๋๋ผ. ๊ทธ๋์ chat gpt์๊ฒ ์ฐจ์ด๊ฐ ๋ญ์ง ๋ฌผ์ด๋ดค๋ค. Q: what is different this.$router.params.~~ and this.$route.params? A: this.$route.params: This is the corr.. 2023. 10. 25. flutter ์ํฌํธ ๊ฒฝ๋ก import 'package:{project_name}/{location}/filename.dart'; project_name : ํ๋ก์ ํธ๋ช location: lib ํด๋๋ก๋ถํฐ์ ์์น 2023. 10. 6. flutter Drift ํ๋ก๊ทธ์ธ ์ฌ์ฉํด์ orm์ผ๋ก ๋ฐ์ดํฐ ๊ด๋ฆฌํ๊ธฐ Drift ์ง์ sql ์ฌ์ฉํ์ง ์๊ณ ๋ ๋ฐ์ดํฐ๋ฒ ์ด์ค๋ฅผ ๊ด๋ฆฌํ ์ ์๋ค. ORM(Object Relational Mapping, ORM) ์ ์ฉ๋์ด์๋ ํ๋ฌ๊ทธ์ธ ํ ์ด๋ธ์ ํด๋์ค๋ก ํํํ๊ณ ์ฟผ๋ฆฌ๋ฅผ ๋คํธ ์ธ์ด๋ก ํํํ๋ฉด ๋๋ฆฌํํธ๊ฐ ์๋์ผ๋ก ํ ์ด๋ธ๊ณผ ์ฟผ๋ฆฌ๋ฅผ ์์ฑํด์ค. 1. ํ ์ด๋ธ ์์ฑ SQL create table student( id INTEGER PRIMARY KEY AUTOINCREMENT, name VARCHAR NOT NULL, age INT DEFAULT 14, score INT NOT NULL ) Drift class Student extends Table{ IntColumn get id => integer.autoIncrement()(); TextColumn get name => text()(); .. 2023. 9. 17. flutter pubspec.yaml ์์ฑ ์ ๋ฆฌ # ํ๋ฌ๊ทธ์ธ์ ์ถ๊ฐํ ์ ์์. ์ฑ์ ํจ๊ป ํจํค์ง๋จ dependencies: flutter: sdk: flutter cupertino_icons: ^1.0.2 # ํ๋ฌ๊ทธ์ธ ์ถ๊ฐ ๊ฐ๋ฅ. ์ฑ๊ณผ ํจ๊ป ํจํค์ง ๋์ง ์์ # ๊ฐ๋ฐํ ๋๋ง ํ์ํ๊ณ ์ฑ์ ์คํํ ๋ ํ์์๋ ํ๋ฌ๊ทธ์ธ๋ค์ ์์ฑํ๋ฉด๋จ dev_dependencies: flutter_test: sdk: flutter 2023. 9. 14. ์ด์ 1 2 3 4 5 ยทยทยท 13 ๋ค์