At the moment all your current hobbies only consists of a name. I think you could use a simple string instead of wrapping it in an object (for point 8 this is not possible though, of course).
No need to check
if (!this.deleted)
before settingthis.deleted = true;
setStyle
should be a computed property computed propertyYou can use
@click
instead ofv-on:click
, you can also use:style
instead ofv-bind:style
(just syntactic sugar)I would put the
v-if="deleted"
on the<div id="deleted-message">
instead of the inner<p>
element.
At the moment all your current hobbies only consists of a name. I think you could use a simple string instead of wrapping it in an object (for point 8 this is not possible though, of course).
No need to check
if (!this.deleted)
before settingthis.deleted = true;
setStyle
should be a computed propertyYou can use
@click
instead ofv-on:click
, you can also use:style
instead ofv-bind:style
(just syntactic sugar)I would put the
v-if="deleted"
on the<div id="deleted-message">
instead of the inner<p>
element.
At the moment all your current hobbies only consists of a name. I think you could use a simple string instead of wrapping it in an object (for point 8 this is not possible though, of course).
No need to check
if (!this.deleted)
before settingthis.deleted = true;
setStyle
should be a computed propertyYou can use
@click
instead ofv-on:click
, you can also use:style
instead ofv-bind:style
(just syntactic sugar)I would put the
v-if="deleted"
on the<div id="deleted-message">
instead of the inner<p>
element.
At the moment all your current hobbies only consists of a name. I think you could use a simple string instead of wrapping it in an object (for point 8 this is not possible though, of course).
No need to check
if (!this.deleted)
before settingthis.deleted = true;
setStyle
should be a computed propertyYou can use
@click
instead ofv-on:click
, you can also use:style
instead ofv-bind:style
(just syntactic sugar)I would put the
v-if="deleted"
on the<div id="deleted-message">
instead of the inner<p>
element.