Posts by Jackson • 853 points
45 posts
-
1
votes0
answers293
views -
0
votes1
answer111
viewsQ: Vuejs2 Update of Directives
I have a problem with my Money directive, it works like this: I make an Axios call to my API, the API brings me a value and I format to the BR standard. But now I have to create a button…
-
1
votes2
answers62
viewsQ: Search Object Array value
I have following Object: let Filmes = [{ "Nome": "Harry Potter 1", "Preco": "50" }, { "Nome": "Harry Potter 2", "Preco": "60" }, { "Nome": "Harry Potter 3", "Preco": "70" }] let Cliente = ["Harry…
-
3
votes1
answer1642
viewsQ: Fetch vs Xmlhttprequest vs Jquery Ajax
Hi. I know the method Fetch ES6 is the latest. But I saw on the Jsperf website that the fetch is the slowest in relation to the famous XmlHttpRequest of JS Vanilla, and even slower than the $.Ajax…
javascriptasked Jackson 853 -
0
votes0
answers91
viewsQ: Vuejs using father’s name tag on children
Follow an example input: <input name="TESTE" id="TESTE" placeholder="TESTE"> There’s a way I can do something like this so I don’t repeat the same name over and over again? Like this below:…
-
1
votes1
answer44
viewsQ: Gulp Watch JS infinite loop
I’m Gulp’s new student, and I did this watch if my Java files are changed, it build-js. But when I run Gulp, it compiles all right but it keeps running the build-js an infinite loop. What I did…
-
5
votes2
answers111
viewsQ: Change pennies of values
I wish I could change the pennies of li by input of MudarCentavos. But not setando Id us li and get treated Idfor Id, because this list will be dynamic, so can come more than 3 values. Note: 2…
javascriptasked Jackson 853 -
3
votes2
answers907
viewsA: How large is the screen for CSS to consider as a desktop?
I like to follow the pattern of Bootstrap, because I think he’s well-defined. For desktop you must use the Large and Extra Large Extra small <576px Small 576px Medium 768px Large 992px Extra…
-
0
votes1
answer30
viewsQ: Copy Object Property to another
I have 2 objects: var a = { "propriedade_um": "1", "propriedade_dois": "2" } var b = { "propriedade_tres": "3", "propriedade_quatro": "4" } How do I get the propriedade_um of the object a and move…
javascriptasked Jackson 853 -
0
votes0
answers203
viewsQ: Vuejs Errors before the API loads
Is there any way I can ask for the Vuejs wait a while before dealing with the mistakes of the GIFT? I have for example a select who receives a v-model coming from the API, but as Vuejs loads the DOM…
-
1
votes1
answer73
viewsQ: Object.Reeze Javascript
How can I give a Object.freeze in just one object? Follow example below where I create a, replicatic a in b, freezo the b, and I try to re-assign a value to a. But it’s no longer possible. Why? How…
-
3
votes2
answers1419
viewsQ: Create and assign loop variables For
How to make this logic within a loop FOR ? var G1 = $('#G1').text() var G2 = $('#G2').text() var G3 = $('#G3').text() console.log("NaN") console.log(G1+"\n"+G2+"\n"+G3) console.log(G1+G2+G3) G1 =…
-
2
votes2
answers622
views -
0
votes2
answers44
views -
3
votes1
answer64
viewsQ: Dirty Checking Angularjs and Vuejs
I really like the Angularjs, and when I read in articles about its discontinuation, it was that one of the main reasons was Dirty Checking. I think that Dirty Checking are the checks made by Two way…
-
11
votes1
answer1726
viewsQ: What is reactivity in Javascript?
I see in frameworks as Angular, Vue, React, the concept of reactivity. I’m totally naive on the subject, and as far as I know, the concept of reactive programming is basically performing…
-
0
votes1
answer116
viewsQ: Datatable Jquery Print Specific Elements
How to print specific elements from outside the datatable? Here’s a JSFIDDLE for example I wish that when I hit the button PRINT, that one div below be printed also <div id="PRINT_HERE_TOO"…
-
1
votes1
answer136
viewsQ: Logic Promisses or callback with Sweetalert and Vuejs
I’m trying to make a callback to perform some functions, I don’t know if I should use Promisses, callbacks or something more advanced. This problem is more about logic I own a Mixin that triggers…
-
1
votes2
answers1485
viewsA: Loading with Angularjs
Friend, Apparently you didn’t insert the $timeout in your controller. it needs to be injected so that you can use it within your controller, such as $scope is. I made a PLUNKER with practically the…
-
13
votes1
answer354
viewsQ: Performance Webpack Build.js
I’m starting with Webpack. It compiles all javascript and css files into a single file Build.js, Bundle.js, whatever it is... In the end it generates a fully minified file using the Node command…
-
0
votes1
answer312
viewsA: Angular - How to pull a request from another page
As far as I know you can’t make a call HTTP to an archive .js local ( correct me if I’m wrong ) You can use this site: MYJSON to host a file in object structure. It will generate a URL to simulate…
-
1
votes1
answer44
viewsQ: Multiple components in Vue.use
I’m using these components in my code Vue.use(Toaster, {timeout: 5000}) Vue.use(VueAlert) Vue.use(VueSweetAlert) Is there any way I can connect these three into one Vue.use ? Something like that…
-
0
votes1
answer1730
viewsQ: Http Get Request with Axios
I need help making one get for my restAPI passing parameter (I don’t know if that’s what it’s called!). What I do is call a list in http://localhost:6000/API/Stores axios.get('…
-
2
votes1
answer50
viewsQ: Webpack Optimization of Minification
I’m starting with the Webpack and I’m learning how to work Config of it, and I’ve seen some of the documentation that deals with Resolve.extentions, I found it really cool because you can hide the…
-
-1
votes1
answer127
viewsQ: Contact Form 2017
My question is simple and direct: Currently, in 2017, with the advancement of Javascript... Is there any way I can make a contact form 100% via javascript without using a PHP for example? If not,…
-
6
votes3
answers4625
viewsQ: toLocaleString R$ Brazilian
I have a simple question about toLocaleString, I didn’t know this prototype and I was testing it instead of doing the good old split and replace var a = 10000.50 var b = a.toLocaleString('pt-BR')…
javascriptasked Jackson 853 -
0
votes1
answer141
viewsQ: Javascript - Logic Handling Data from Arrays
I have a very complex logic problem. I have to compare 4 arrays and make them work together. I will explain it better Example of how it can come: var mesA = [ "fev", "mar", "jun" ] var valorA = […
-
1
votes1
answer94
viewsQ: Vuejs Event with Mixins
I’m testing Mixins on Vuejs and I have a question. It’s like I call an event directly from a Mixins without having to assign in mine methods ? Mymixins.js import Vue from 'vue' Vue.mixin({ methods:…
-
4
votes1
answer5709
viewsA: How to use $broadcast(), $Emit() and $on() in Angularjs
The $emit and the $broadcast are very similar. As you said, both are to fire something. I will try to explain very simply The $broadcast calls the event of everyone who is "below" him, would be the…
-
1
votes1
answer265
viewsA: Select more than one item in select or something similar Angularjs
Gabriel, Like the @Sergio said, you can use the component multiple in his select. (function(angular) { angular.module('app', []).controller('ctrl', ['$scope', function($scope) {}]);…
-
1
votes1
answer1410
viewsA: I need an item from my select to be selected, Angular
Eduardo, The ideal to use in this case is the ng-options, it is a component of Angularjs made especially for popular a Select. Either way, you NG-MODEL comes zeroed by default, you need to…
-
0
votes1
answer68
viewsQ: Framework for single page application
I’m setting up a static website and I wanted to make this site a Single Page Application. I’m aware that being a spa there are several complications with SEO. I ask you, is there any framework that…
-
1
votes1
answer68
viewsQ: Vuejs/Javascript - components and variables
Hello! I have a restAPI that returns me a array of names, I wanted to know how I do to get them as componentes. Below you can understand better: import produtos from './produtos' import artigos from…
-
2
votes3
answers4764
viewsA: Expression within ng-disabled
That’s right. I’ll do it in booleans for you to understand. NG-Disable output disables the element when its output is True. In your doubt of !(control1 || control2) would be !( true || true ) This…
-
1
votes1
answer334
viewsQ: Paths in separate files with Vuejs
Can I create routes in separate files in Vuejs? I currently have this folder structure |- main.js | |- Grupos |- grupos.vue |- Artigos |- artigos.vue main.js import Vue from 'vue' import VueRouter…
-
2
votes1
answer389
viewsQ: Vuejs v-select Submit
I’m using the V-SELECT to make a select style Chosen. Well, it works! But when I use "ENTER" to insert new elements, it gives SUBMIT in the form. It’s like I give Submit only when I click the button…
-
1
votes0
answers258
viewsQ: Vuejs Select Multiple Array Undefined
I have a Rest API who returns me CategoriaList and CategoriaSelected. He’s giving conflict when I do with a Select Multiple in the HTML Categories. <template> <select multiple…
-
1
votes1
answer461
viewsQ: Import Axios in Mixins Vuejs
Is it possible I import the Axios no Mixins? I have a Rest API and am putting in a Mixin my code of GET, but I use Axios for that. When I try to import the Axios within the Mixins, he returns me:…
-
2
votes2
answers454
viewsA: How to sum up all the elements of an ng-repeat?
William, It is not recommended to use $rootScope, because it is a global variable. Use only when necessary. (e.g. use a $rootScope that saves your previous and current page, to create a smart "Back"…
-
1
votes1
answer164
viewsQ: Vuejs Condition of Classes
I have a menu and wanted to know if there is a way I make a condition of add a class depending on the child class. For example: <ul :class="{ 'open' : TemClasseNoFilho }"> <li v-for="item…
-
0
votes1
answer354
viewsQ: Vuejs Menu Collapse
I have a dynamic menu that comes from a REST API. My problem is: Today when I access some page, all menus come closed. I wanted when I entered for example in a page 3° level, the menu opened…
-
3
votes2
answers815
viewsQ: Vuejs Router-View and Axios
I have a page with 2 structures using router-view. Menu and Content. the in my Menu I have a page called "Shops", on that page "Shops" has a table, I give a Axios.Get in my API and it returns me a…
-
2
votes1
answer283
viewsQ: Webpack + Nodejs import bootstrap + jquery
Hello folks from Stackoverflow, I have a Vuejs project already with Webpack. And I was importing the Jquery and Bootstrap libraries. I went to my Ode and used the commands npm install jquery…
-
1
votes1
answer1076
viewsA: Input field is not loading default value "value"
This happens because you have one ng-model. The value of this input is the ng-model, probably you are not passing anything to this model, why it will go empty. Go to your controller and enter a…
-
4
votes1
answer110
viewsQ: Nodejs because so many files
Good afternoon, everyone, I’m starting a short time with Nodejs a little project in VUEJS, and I saw that when I give the command NPM INSTALL it creates about 20,000 files, my application gets to…