Vue Web App
How do I make an vue web app?
What is a vue web app? How do you make a vue web app? This script and codes were developed by Anoop on 06 September 2022, Tuesday.
Vue Web App - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Vue Web App</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/css/bootstrap.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container" id="app"> <div class="jumbotron"> <div class="form-group"> <input type="text" class="form-control" id="inputField" placeholder=""> </div> <button type="submit" class="btn btn-primary" v-on:click="addItem">Add</button> </div> <div class="row"> <div class="card w-100 mb-3" v-for='(item,index) in items'> <div class="card-block"> <h4 class="card-title">{{item.text}}</h4> <p class="card-text">The weight of {{item.text}} is {{item.weight}} kg.</p> </div> </div> </div>
</div> <script src='https://cdnjs.cloudflare.com/ajax/libs/vue/2.1.10/vue.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Vue Web App - Script Codes CSS Codes
/* Space out content a bit */
body { padding-top: 20px; padding-bottom: 20px;
}
/* Everything but the jumbotron gets side spacing for mobile first views */
.header,
.marketing,
.footer { padding-right: 15px; padding-left: 15px;
}
/* Custom page header */
.header { padding-bottom: 20px; border-bottom: 1px solid #e5e5e5;
}
/* Make the masthead heading the same height as the navigation */
.header h3 { margin-top: 0; margin-bottom: 0; line-height: 40px;
}
/* Custom page footer */
.footer { padding-top: 19px; color: #777; border-top: 1px solid #e5e5e5;
}
/* Customize container */
@media (min-width: 768px) { .container { max-width: 730px; }
}
.container-narrow > hr { margin: 30px 0;
}
/* Main marketing message and sign up button */
.jumbotron { border-bottom: 1px solid #e5e5e5;
}
.marketing p + h4 { margin-top: 28px;
}
/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) { /* Remove the padding we set earlier */ .header, .marketing, .footer { padding-right: 0; padding-left: 0; } /* Space out the masthead */ .header { margin-bottom: 30px; } /* Remove the bottom border on the jumbotron for visual effect */ .jumbotron { border-bottom: 0; }
}
Vue Web App - Script Codes JS Codes
var app = new Vue({ el: '#app', data: { title: 'Hello, world!', content :'This is a template for a simple marketing', items: [ {text : 'Rottweiler',weight : '45'}, {text : 'Bulldog',weight : '23'}, {text : 'Beagle',weight : '11'} ] }, filter :{ }, methods:{ addItem : function(){ var inputField = document.getElementById('inputField'); if(inputField.value !== ""){ this.items.push({ text : inputField.value }) } inputField.value = ""; }, deleteItem: function(index){ this.items.splice(index,1); console.log(index) } }
})
![Vue Web App - Script Codes](http://shots.codepen.io/anoopjohn/pen/YZQmyO-512.jpg)
Developer | Anoop |
Username | anoopjohn |
Uploaded | September 06, 2022 |
Rating | 3 |
Size | 3,284 Kb |
Views | 20,240 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Parallax Effect | 2,393 Kb |
Hide select arrow in Firefox | 1,747 Kb |
Pie Chart | 4,762 Kb |
A Pen by Anoop | 330,760 Kb |
Simple jQuery accordion menu | 2,089 Kb |
Example | 1,707 Kb |
Price Slider | 2,985 Kb |
Vue App | 2,070 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Responsive Minimal Blog Layout | Hackthevoid | 5,261 Kb |
Calendar | Miroot | 2,033 Kb |
Fluid Grid 12 | Alexoliverwd | 2,309 Kb |
CSS Google Now | Jackmoran | 3,196 Kb |
SVG Scalable Text | Said_FD | 1,451 Kb |
Drifting Clouds | Benedikte | 2,247 Kb |
Gulpfile | Aimhigherwebdesign-amy | 1,765 Kb |
Google Fonts Sass Mixin | HugoGiraudel | 4,237 Kb |
Print element on a page | Mrs_snow | 2,081 Kb |
Haml Calendar | Katydecorah | 5,643 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!