Moved most components to EJS files in /views/components/
This commit is contained in:
parent
4139459fc3
commit
92e6a95fe5
20 changed files with 341 additions and 278 deletions
14
resources/cider-ui-tests/views/components/hello-world.ejs
Normal file
14
resources/cider-ui-tests/views/components/hello-world.ejs
Normal file
|
@ -0,0 +1,14 @@
|
|||
<script type="text/x-template" id="hello-world">
|
||||
<button @click="sayHello()">Hello world!</button>
|
||||
</script>
|
||||
|
||||
<script>
|
||||
Vue.component('hello-world', {
|
||||
template: '#hello-world',
|
||||
methods: {
|
||||
sayHello: function () {
|
||||
alert('Hello world!');
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue