vue-master | 一个简单的vuenode登录注册项目 - vue | State Container library
kandi X-RAY | vue-master Summary
kandi X-RAY | vue-master Summary
vue-master
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of vue-master
vue-master Key Features
vue-master Examples and Code Snippets
Community Discussions
Trending Discussions on vue-master
QUESTION
I'm trying to go through a basic vue tutorial. Recently I must have changed something that is stopping anything in the vue.js from rendering on my page and I can't seem to find out why. Example: instead of displaying the value of data.product, it displays {{ Product }}
. Thanks in advance for any help!
Here's a link to the project repo on gitlab: project link
ANSWER
Answered 2019-Mar-02 at 09:03I'm quite sure you will see an Uncaught ReferenceError
if you open the DevTools of your browser. Because in your main.js
file you reference two times to non-existent variables. In your variants-array
you are using Green
and Blue
for your variantColor
as variables but non of them is defined. From context I guess you just want to display these two values as string at your page, so you have to assign a string to your variantColor
variable by adding single or double quotes.
Inside your main.js
change your variant array to this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vue-master
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page