Coder Social home page Coder Social logo

vueandbootstrap's Introduction

VueAndBootstrap

Examples of VueJS and Bootstrap working together


This is a set of self-contained examples of using VueJS and Bootstrap together. They are intended to demonstrate basic concepts of VueJS within an attractive, commonly-used UI framework.

No additional build tools are required. All JS is loaded from CDNs. The focus here is on learning VueJS and how it can be applied to existing projects without adopting a new toolchain or throwing out old, working code.

Example 1 - Bootstrap panel rendered with Vue

A basic "hello world"-type example, showing how to instantiate Vue and render of data inside the DOM.

Example 2 - Rendering a list view with v-for

Rendering an array of data into a list view using the v-for directive.

Example 3 - Rendering a sorted list view with computed

Using a computed property to render alphabetically-sorted data without modifying the original array.

Example 4 - Add and delete items in list view dynamically

Adding functionality via methods to add and remove items from an array, and demonstrating the automatic re-rendering of Vue.

Example 5 - Conditional rendering

Utilize the v-if directive to conditionally render based on the state of the data.

Example 6 - Simple custom component

A simple example of a custom component, allowing for complex custom functionality to be wrapped in HTML-style tags.

Example 7 - Complex custom component, slots

Use a custom component to encapsulate the complex functionality of the editable list group in simple HTML tags. Demonstrates more complex use of the <slot> tag for "content distribution" a la Web Components

Example 8 - Loading and saving data using watchers

Building on example 7, we add a watcher to save our list of items every time it changes. We leverage the Store library to load data from and save to localStorage in the browser.


Ed Finkler
[email protected]
@funkatron

vueandbootstrap's People

Contributors

funkatron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.