Skip to content

Instantly share code, notes, and snippets.

@lemesdaniel
Created August 11, 2015 22:35
Show Gist options
  • Save lemesdaniel/d160fd5cae8db13a7bd3 to your computer and use it in GitHub Desktop.
Save lemesdaniel/d160fd5cae8db13a7bd3 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>Exemplo Laravel e Fanout</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
</head>
<body >
<div class="container" id="add" >
<h1>Digite o título</h1>
<form v-on="submit: addPost">
<div class="form-group">
<input v-model="title" v-el="title" class="form-control"></input>
</div>
<button class="btn btn-primary">
Adicionar post
</button>
</form>
@{{msg}}
</div>
<script src="http://9b1cf4d8.fanoutcdn.com/bayeux/static/faye-browser-min.js"></script>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/vue/0.12.10/vue.min.js"></script>
<script type="text/javascript" src="zepto.js"></script>
<script type="text/javascript" src="app.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment