Giter Club home page Giter Club logo

vue-crash-2021's People

Contributors

bradtraversy avatar karanodedra20 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

vue-crash-2021's Issues

Until the routing everything worked perfectly.

I copied your entire code into my code files and checked if it would work. The only difference between my project and the one listed here in this repo is I guess the vue.js version.

The problem that I have is that my routing does not work and therefore the views are not displayed corresponding to the paths specified in the index.js file. How I said I copied all your code and it still didn't worked out. When I inspect the html page it appears that the content is not injected into <router-view :showAddTask="showAddTask"></router-view>. The routerLink works it changes the URL without refreshing the page, but no component is displayed.

Extraneous non-emits event listeners (addTask) were passed to component

Thanks for the tutorial. It's great!

I followed along but still got this warning in the console every time I clicked on the "Add a Task" button:
Extraneous non-emits event listeners (addTask) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.
at <AddTask onAddTask=fn<bound addTask> >
at <App showAddTask=true onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< Proxy {deleteTask: ƒ, addTask: ƒ, toggleStatus: ƒ, …} > >
at <RouterView showAddTask=true >
at <App>

I found out that declaring the emitted event works in removing the warning. Hope this helps.

  • Add emits: ['add-task'] to the export in /src/components/AddTask.vue

Unnecessary emit values sent in `Task` component.

On double-clicking we send toggle-reminder emit with value task.id here and on click we send delete-task with task.id as well here- both of which are unnecessary.

We can get rid of the values in the Task component because these are emitted in Tasks component within the for loop here.

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.