Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6e97082

Browse files
committed
Basics README
1 parent 7651851 commit 6e97082

File tree

1 file changed

+29
-23
lines changed

1 file changed

+29
-23
lines changed

‎README.md

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,67 +3,75 @@
33
A short, concise tutorial on the popular front-end framework Vue.js. Written for the Mission Vista High School Web Programming course.
44

55
## Table of Contents
6-
1. [Getting Started](#start)
7-
+ [Installation and Usage](#installation)
6+
1. [Getting Started](#getting-started)
7+
+ [Installation and Usage](#installation-and-usage)
88
2. [Basics](#basics)
9+
+ [Syntax](#syntax)
10+
+ [V-Directives](#v-directives)
11+
+ [Basic Directory Structure](#basic-directory-structure)
912
5. [Resources](#resources)
10-
11-
1213

13-
### Getting Started <aname="start"></a>
14-
Vue.js is the Javascript framework. In this section, we will go over the core concepts to and understand and use Vue.js.
14+
### Getting Started
15+
Vue.js is the Javascript framework. In this section, we will start off with installing and getting exposed to Vue.js
1516

16-
#### Installation and Usage <aname="installation"></a>
17+
#### Installation and Usage
1718
Vue.js is tremendously simple to install and use. Although we will be using the Vue command line interface (vue-cli), you can get started with Vue in 3 different ways.
1819

19-
**CDN:** <br>
20-
Import Vue.js into your `index.html` file using the `<script>` tag. <br>
20+
**CDN:** [To Github Section](https://github.com/MissionVistaCSClub/Vue.js-Tutorial/tree/master/GettingStarted/InstallationAndUsage/1.1.A)
21+
Import Vue.js into your `index.html` file using the `<script>` tag.
2122

2223
```html
2324
<!-- development version with alarms and alerts -->
2425
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
2526
```
2627

27-
<br>
28-
**NPM:** <br>
28+
29+
**NPM:** [To Github Section](https://github.com/MissionVistaCSClub/Vue.js-Tutorial/tree/master/GettingStarted/InstallationAndUsage/1.1.B)
2930
Start by creating a project with npm
3031
```bash
3132
$ npm init -y
3233
```
33-
<br>
34-
34+
35+
3536
Install Vue and save dependencies
3637
```bash
3738
$ npm install -s vue
3839
```
39-
<br>
40-
40+
4141
Then in your `index.html` file reference vue with a `<script>` tag
4242
``` html
4343
<body>
4444
<script src="node_modules/dist/vue/vue.js"></script>
4545
</body>
4646
```
4747
\* As a note: in the `/dist` folder of the `vue` npm package, there are many other versions that refer to different builds of Vue.js. We will only be using the Full build. For more information see [here](https://vuejs.org/v2/guide/installation.html#Explanation-of-Different-Builds)
48-
<br><br>
49-
**Vue-CLI:** <br>
48+
49+
50+
**Vue-CLI:** [To Github Section](https://github.com/MissionVistaCSClub/Vue.js-Tutorial/tree/master/GettingStarted/InstallationAndUsage/1.1.C)
5051
This is the method we will most often use. The Vue-CLI allows us to quickly create Single Page Applications with built in templates.
5152
Start by installing the Vue-CLI module from NPM
5253

5354
```bash
5455
$ sudo npm install -g vue-cli
5556
```
5657

57-
Create your project using the CLI with the command `vue init <template-name> <project-name>` <br>
58+
Create your project using the CLI with the command `vue init <template-name> <project-name>`
5859
Ex:
5960
```bash
6061
$ vue init webpack-simple myFirstVueProject
6162
```
6263

63-
<br>
64-
**JSFiddle:** <br>
64+
65+
**JSFiddle:**
6566
You can play around with Vue.js in JSFiddle's [Hello World Example](https://jsfiddle.net/chrisvfritz/50wL7mdz/)
6667

68+
### Basics
69+
In this section, we will learn about the basics of Vue: basic directory structure, syntax, and v-directives.
70+
### Syntax
71+
### Basic Directory Structure
72+
#### V-Directives
73+
Vue.js uses an attribute called v-directives, similar to [Angular's](https://angular.io/) ng-directives. They allow us to retrieve, bind, show, and other actions to our data.
74+
**Declarative Rendering:** [To Github Section]()
6775

6876

6977

@@ -74,9 +82,7 @@ Ex:
7482

7583

7684

77-
78-
### Resources <a name="resources"></a>
85+
### Resources
7986
Vue.js is one of the better documented frameworks out there. Regardless, I have compiled a list of my favorite Vue.js documentations/tutorials while writing this tutorial.
8087
+ **[Vue.js Official Documentation](https://vuejs.org/)**
8188

82-

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /