From 21a83d215cbcaea1f2effb8a9240bf8ede6b9a22 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Fri, 20 Apr 2018 15:28:14 -0400 Subject: [PATCH] s12e160 v-highlight red --- s12/src/App.vue | 2 +- s12/src/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/s12/src/App.vue b/s12/src/App.vue index 00db3fd..ccaf6a9 100644 --- a/s12/src/App.vue +++ b/s12/src/App.vue @@ -10,7 +10,7 @@

Custom Directives

-

Color This

+

Color This

diff --git a/s12/src/main.js b/s12/src/main.js index 92f34c3..6b9961d 100644 --- a/s12/src/main.js +++ b/s12/src/main.js @@ -3,7 +3,7 @@ import App from './App.vue' Vue.directive('highlight', { bind(el, binding, vnode){ - el.style.backgroundColor = 'green' + el.style.backgroundColor = binding.value; } })