Initial Commit - Fixed the 'npm run dev' command issue. Original script doesn't build files when changed.
This commit is contained in:
16
src/App.html
Normal file
16
src/App.html
Normal file
@@ -0,0 +1,16 @@
|
||||
<label>Hello {{name}}!</label>
|
||||
Template : <Test1></Test1>
|
||||
Template : <Test2></Test2>
|
||||
<style>
|
||||
h1 {
|
||||
color: purple;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
import Test1 from './components/Test1/Test1.html';
|
||||
import Test2 from './components/Test2/Test2.html';
|
||||
export default {
|
||||
components :{Test1, Test2}
|
||||
}
|
||||
</script>
|
||||
1
src/components/Test1/Test1.html
Normal file
1
src/components/Test1/Test1.html
Normal file
@@ -0,0 +1 @@
|
||||
<label>Test 1</label>
|
||||
1
src/components/Test2/Test2.html
Normal file
1
src/components/Test2/Test2.html
Normal file
@@ -0,0 +1 @@
|
||||
<label>Test 2</label>
|
||||
10
src/main.js
Normal file
10
src/main.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import App from './App.html';
|
||||
|
||||
const app = new App({
|
||||
target: document.body,
|
||||
data: {
|
||||
name: 'This is my name'
|
||||
}
|
||||
});
|
||||
|
||||
export default app;
|
||||
Reference in New Issue
Block a user