Skip to content

Instantly share code, notes, and snippets.

@colinf
Last active March 24, 2017 19:23
Show Gist options
  • Save colinf/626a9ff3b6e7df51ec44c6d4136202c6 to your computer and use it in GitHub Desktop.
Save colinf/626a9ff3b6e7df51ec44c6d4136202c6 to your computer and use it in GitHub Desktop.
HTML template of Component2 ( see http://j.mp/2n2nK6R )
<template>
<div class='Component1'>
<form>
<div class="form-group">
<label for="inputName">Your name (2)</label>
<input v-model="localPerson.name" type="text" class="form-control" id="inputName" placeholder="Name">
</div>
<div class="form-group">
<label for="inputProfession">Your profession (2)</label>
<input v-model="localPerson.profession" type="text" class="form-control" id="inputProfession" placeholder="Profession">
</div>
<div class="form-group">
<div class="col-sm-offset-3 col-sm-9">
<button type="button" class="btn btn-default" @click="revert">Revert</button>
<button type="button" class="btn btn-success" @click="savePerson2(localPerson)">Save</button>
</div>
</div>
<div v-if="apiError" class="col-sm-offset-3 error">
{{ apiError }}
</div>
</form>
</div>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment