Created
June 19, 2017 22:37
-
-
Save InTheCloudDan/e98b0ee9029c618fc1d13c5801f6c80b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Lesson</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
<style> | |
.completed { text-decoration: line-through; } | |
</style> | |
</head> | |
<body> | |
<div class="container"> | |
</div> | |
<div id="app"> | |
<tasks :list=" {{ $tasks }}"></tasks> | |
</div> | |
<template id="tasks-template"> | |
<div> | |
<h1>My Tasks</h1> | |
<ul class="list-group"> | |
<li class="list-group-item" v-for="task in list"> | |
@{{ task.body }} | |
</li> | |
</ul> | |
</div> | |
</template> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.3.4/vue.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue-resource/1.3.4/vue-resource.min.js"></script> | |
<script src="js/main.js"></script> | |
</body></html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment