1 | Mivhak.component('caption', { |
||
0 ignored issues
–
show
|
|||
2 | template: '<div class="mivhak-caption"></div>', |
||
3 | props: { |
||
4 | text: null |
||
5 | }, |
||
6 | created: function() { |
||
7 | this.setText(this.text); |
||
8 | }, |
||
9 | methods: { |
||
10 | setText: function(text) { |
||
11 | this.$el.html(text); |
||
12 | } |
||
13 | } |
||
14 | }); |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.