0% found this document useful (0 votes)
3 views7 pages

Tutorial

The document provides a tutorial on setting up a development environment using Visual Studio Code, HBuilderX, and Node.js. It includes instructions for installing the cnpm package and configuring Axios for API requests in a Vue.js application. Additionally, it contains basic HTML and CSS templates for structuring a web application.

Uploaded by

Aya ellaaa
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views7 pages

Tutorial

The document provides a tutorial on setting up a development environment using Visual Studio Code, HBuilderX, and Node.js. It includes instructions for installing the cnpm package and configuring Axios for API requests in a Vue.js application. Additionally, it contains basic HTML and CSS templates for structuring a web application.

Uploaded by

Aya ellaaa
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

tutorial

[Link]
[Link]

[Link]
npm install -g cnpm --registry=[Link]
<template>
</template>

<script>
</script>

<style>
</style>
html,body{
​ ​ margin: 0;
​ ​ padding: 0;
​ ​ width: 100%;
​ ​ height: 100%;
​ }
​ h1,h2,h3,h4,h5,h6,p,div,ul,li{
​ ​ margin: 0;
​ ​ padding: 0;
​ }
​ a{
​ ​ text-decoration: none;
​ }
​ li{
​ ​ list-style: none;
​ }
​ #app {
​ ​ width: 100%;
​ ​ height: 100%;
​ ​
​ }
import axios from "axios"
import { provide } from "vue";
[Link] = "[Link]
provide("axios",axios);

<script setup>
​ import axios from "axios"
​ import { provide } from "vue";
​ [Link] = "[Link]
​ provide("axios",axios);

</script>

npm install axios --save

import { inject } from 'vue';


​ const axios = inject('axios');

You might also like