Skip to content

Instantly share code, notes, and snippets.

@vaneves
Created September 24, 2015 19:02
Show Gist options
  • Save vaneves/1324611da5bbb3007596 to your computer and use it in GitHub Desktop.
Save vaneves/1324611da5bbb3007596 to your computer and use it in GitHub Desktop.
Curso Ninja - Post Create HTML
<form ng-submit="save()">
<div class="form-group">
<label for="title">Título</label>
<input type="text" ng-model="post.title" class="form-control" id="title">
</div>
<div class="form-group">
<label for="content">Conteúdo</label>
<textarea ng-model="post.content" class="form-control" id="content" rows="5"></textarea>
</div>
<button type="submit" class="btn btn-primary">Salvar</button>
<a href="#/list" class="btn btn-default">Cancelar</a>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment