Posts by Freitas • 51 points
7 posts
-
1
votes1
answer63
viewsA: Failed to read filter property of Undefined on Vue.js
Try to put the items within its date. data: () => ({ plugins: {}, search: '', items: [] }),
-
0
votes2
answers34
viewsA: Error with asynchronism in Javascript
How’s your search method? If your problem is really him doing the search and not waiting, you can use async/await or use a then in his presidency
-
0
votes1
answer240
viewsA: Enable button when fields are filled in
You can use a filter to pick up only the inputs that are visible inputs.filter((i, el) => $(el).is(':visible'))
-
2
votes1
answer28
viewsA: (VUEJS) Access the router query before injecting the services into vuejs
I don’t understand very well what you want to do, but follow the documentation https://br.vuejs.org/v2/api/index.html#beforeMount. If beforeMount(just before assembly starts) is the solution for…
-
0
votes1
answer43
viewsA: I can’t pass the products I select in Home.Ve to Header in Vue
Since you are using vuex, you can send a commit warning that the product has been changed (added or removed) to its state in vuex, so you can listen to the change in the component you want, in this…
-
1
votes1
answer1118
viewsA: Reactjs Private Routes and React Router
I use it this way in my applications const PrivateRoute = ({component: Component, ...rest}) => { return ( <Route {...rest} render={props => ( isAuth() ? <Component {...props} /> :…
-
1
votes1
answer398
viewsQ: How can I hide a Component when the login search is completed
How can I pick up hide a component when the bank result is completed. Code: import React, { Component } from 'react'; import axios from 'axios'; class Login extends Component { state = { user: '',…