Commit 32434205 authored by Derek Nutile's avatar Derek Nutile

Testing vue component

parent 8ff730c5
Pipeline #56867695 passed with stage
in 27 seconds
This source diff could not be displayed because it is too large. You can view the blob instead.
var greeting = "Last edited: 2019-02-24";
console.log(greeting);
\ No newline at end of file
import Vue from 'vue';
// Vue.component('vuecomponent-url', './components/Url.vue');
Vue.component('vuecomponent-url', {
template: '<div><url v-for:"links in link"><a href="{{ link.url }}">{{ link.name }}</a></url></div>',
data() {
return {
links: [
{ name: "Name", url: "URL"}
]
};
}
})
var app = new Vue({
el: '#vueapp',
data: {
appTitle: 'DerekNutile.com',
}
})
<template>
<a href="{{ url }}" target="_blank">{{ title }}</a>
</template>
<script>
export default {
data() {
return {
url: 'foo',
title: 'bar'
}
}
}
</script>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment