cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv


A Pen By Captain Anonymous

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

              <div id='app'>
  <div v-if='quotes'>
          v-for='quote in quotes'
      <li>{{ quote.id }}: {{ quote.body }}</li>
  <button @click='getQuote()'>Get quote 18</button>

let routes = [
    method: 'GET',
    url: 'quotes/',
    response: [
      {id: 14, body: "You know what the chain of command is? It's the chain I go get and beat you with until you understand who's in ruttin charge here."},
      {id: 22, body: 'Also? I can kill you with my brain.'}
    method: 'POST',
    url: 'quotes/',
    response: {id: 23, body: 'Terse? I can be terse. Once, in flight school, I was laconic.'}
    method: 'GET',
    url: 'quotes/18/',
    response: {id: 18, body: 'Curse your sudden but inevitable betrayal!'}

Vue.http.interceptors.unshift((request, next) => {
  let route = routes.find((item) => {
    return (request.method === item.method && request.url === item.url);
  if (!route) {
    // we're just going to return a 404 here, since we don't want our test suite making a real HTTP request
    next(request.respondWith({status: 404, statusText: 'Oh no! Not found!'}));
  } else {
        {status: 200}

new Vue({
  el: '#app',
  data: {
    quotes: null
  created () {
    Vue.http.get('quotes/').then((res) => {
      this.quotes = res.body;
  methods: {
    getQuote () {
      Vue.http.get('quotes/18/').then((res) => {
Loading ..................