-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(src): Add support of template and script src tags (#29)
* feat(src): Add support of template and script src tags Close #28 * test(src): Add tests for src attribute support
- Loading branch information
1 parent
30506cc
commit 240f62e
Showing
5 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div class="hello"> | ||
<h1 :class="headingClasses">{{ msg }}</h1> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export default { | ||
name: 'basic', | ||
computed: { | ||
headingClasses: function headingClasses () { | ||
return { | ||
red: this.isCrazy, | ||
blue: !this.isCrazy, | ||
shadow: this.isCrazy | ||
} | ||
} | ||
}, | ||
data: function data () { | ||
return { | ||
msg: 'Welcome to Your Vue.js App', | ||
isCrazy: false | ||
} | ||
}, | ||
methods: { | ||
toggleClass: function toggleClass () { | ||
this.isCrazy = !this.isCrazy | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<template src="./BasicSrc.html"></template> | ||
|
||
<script src="./BasicSrc.js"></script> |