Giter VIP home page Giter VIP logo

vuejs-firebase-app-websites's Introduction

vuejs-firedatabase

a example project between vuejs and firedatabase

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

vuejs-firebase-app-websites's People

Stargazers

Alejandro Loaiza avatar Genildo_Lopes avatar Kal An Zans avatar Marco A. Ramirez avatar  avatar Maya Fiuza avatar Jonathan Zúñiga avatar

Watchers

James Cloos avatar Fazt avatar  avatar

vuejs-firebase-app-websites's Issues

Problemas para eliminar Objeto en Firebase

Primero mi saludos a usted Sr. Fazt

requiero de ayuda en cuanto a la solución para poder eliminar objeto en firebase esto haciendo énfasis en su ejercicio.

Estos son los errores cuando intento eliminar el objeto.

vue.esm.js?efeb:628 [Vue warn]: Error in v-on handler: "Error: Reference.child failed: First argument was an invalid path = "undefined". Paths must be non-empty strings and can't contain ".", "#", "$", "[", or "]""

y

Error: Reference.child failed: First argument was an invalid path = "undefined". Paths must be non-empty strings and can't contain ".", "#", "$", "[", or "]"
at validatePathString (index.esm.js?66c8:1669)
at Reference.child (index.esm.js?66c8:13889)
at VueComponent.deleteWebsite (App.vue?26cd:108)
at click (eval at ./node_modules/vue-loader/lib/template-compiler/index.js?{"id":"data-v-7ba5bd90","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/App.vue

image

acá el código:

{{web.name}} {{web.author}} Delete <script> import Firebase from 'firebase'; import config from './config'; let app = Firebase.initializeApp(config); let db = app.database(); let websitesRef = db.ref('websites'); export default { name: 'App', firebase: { websites:websitesRef }, data() { return { websites:[], newWebsite: { name: '', author: '', url:'' } } }, created() { Firebase.database().ref('websites').on('value', (snapshot) => { this.websites = snapshot.val() }) }, methods:{ addWebsite(){ websitesRef.push(this.newWebsite); this.newWebsite.name=''; this.newWebsite.url=''; this.newWebsite.author=''; }, deleteWebsite(website){ websitesRef.child(website['.key']).remove() } } } </script>

Gracias

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.