Skip to content

Commit 5824cd1

Browse files
Merge pull request #51 from omarbelkady/GetRequests
How Get Requests Work In Vue
2 parents 501bc16 + 0bc9902 commit 5824cd1

File tree

13 files changed

+14067
-0
lines changed

13 files changed

+14067
-0
lines changed

GetRequests/vuejsproj/.babelrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"presets": [
3+
["env", { "modules": false }],
4+
"stage-3"
5+
]
6+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

GetRequests/vuejsproj/.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.DS_Store
2+
node_modules/
3+
dist/
4+
npm-debug.log
5+
yarn-error.log
6+
7+
# Editor directories and files
8+
.idea
9+
*.suo
10+
*.ntvs*
11+
*.njsproj
12+
*.sln

GetRequests/vuejsproj/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## HTTP Requests ---> GET, POST, PUT, PATCH, DELETE
2+
```
3+
Sometimes just having content printed is not what we simply want in our application. We want the content to be moved
4+
around or we want to work with the data like store it in a database.
5+
6+
In VueJS there are many ways to perform HTTP Requests some ways are: JQuery or FetchAPI. we can another resource called vue resource
7+
```
8+
9+
```bash
10+
npm install vue-resource
11+
```

GetRequests/vuejsproj/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>vuejsproj</title>
6+
</head>
7+
<body>
8+
<div id="app"></div>
9+
<script src="/dist/build.js"></script>
10+
</body>
11+
</html>

0 commit comments

Comments
 (0)