{"id":17997556,"url":"https://github.com/danielhe4rt/learning-vuejs","last_synced_at":"2026-01-15T22:57:55.980Z","repository":{"id":106424873,"uuid":"567496653","full_name":"danielhe4rt/learning-vuejs","owner":"danielhe4rt","description":"vamo fml preciso ficar rico logo","archived":false,"fork":false,"pushed_at":"2022-11-17T23:12:10.000Z","size":1,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-02T19:48:41.668Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielhe4rt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-17T23:10:01.000Z","updated_at":"2022-11-18T20:41:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"c213b6e8-28ee-449a-b174-8ef3ee310df3","html_url":"https://github.com/danielhe4rt/learning-vuejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielhe4rt%2Flearning-vuejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielhe4rt%2Flearning-vuejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielhe4rt%2Flearning-vuejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielhe4rt%2Flearning-vuejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielhe4rt","download_url":"https://codeload.github.com/danielhe4rt/learning-vuejs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247129837,"owners_count":20888461,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-29T21:19:36.076Z","updated_at":"2026-01-15T22:57:55.938Z","avatar_url":"https://github.com/danielhe4rt.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Estudo VueJS\n\n### Diferenças do Vue2 pro Vue3\n\n* Como ele é criado (scaffold)\n* Multiplos componentes raiz no mesmo arquivo\n* Fragments (Estados) -\u003e estudar mais \n* Nova possibilidade de fugir do Options API (n gostei)\n* Beleza já entendi que vo te q aprender esse tal de Composition API\n* Novo jeito de acessar os ciclos de vida de um hook `onMounted()`\n* Propriedades Computadas são legais obrigado vue3.\n* Você pode passar as props diretamente no setup, isolar contexto e evitar de chamar o `this` em tudo que é lado.\n* Portal ?????????????????????\n\nSumário\n* Vue3 é mais rapido, menor e mais fácil de manter que o Vue2\n* Vue3 é marromeno a mesma coisa que o Vue2 porém com mais features significativas\n* A sintaxe não mudou muito, já que você pode usar a Option API do jeito que ela foi desenhada no Vue2.\n\n\n### Como iniciar o Vue3\n\nVocê pode iniciar tanto usando o NPM/Yarn e baixar o Vue3 quanto pegar diretamente de um CDN como o `unpkg`. \n\nUma coisa bem interessante na sua construção do método é que ele passa uma função `mount()` esperando um parâmetro de algum elemento dentro da sua pagina pra ser a referência. \n\nPor padrão, a comunidade chama de `#app`. \n\n```html\n\n\u003cdiv id=\"app\"\u003e\n    \u003c!--Elementos a serem adicionados a sua aplicação VUE--\u003e\n\u003c/div\u003e\n\u003cscript\u003e\n    Vue.createApp({\n        // suas funções do app Vue\n    }).mount(\"#app\")\n    \n\u003c/script\u003e\n```\n\n### Diferenças entre Options API vs Composition API\n\nOptions API separa partes da sua aplicação de uma maneira não tão agradável, com alguns vários métodos e etapas.\n\nCom Composition API você consegue carregar tudo no setup e criar um ambiente reativo usando hooks disponíveis. Além disso é possível compartilhar código com \"Composables\".\n\n### Composition API\n\n\n### Diretivas básicas do Vue3\n\n\n\n### Criando um Hello World\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielhe4rt%2Flearning-vuejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielhe4rt%2Flearning-vuejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielhe4rt%2Flearning-vuejs/lists"}