Posts by Isa • 1,103 points
71 posts
-
-2
votes1
answer74
viewsQ: How to flatten a nested object that may contain repeated Javascript keys?
I am trying to transform an array of objects in which each element is like this: { id: 1, maxiTempo: 30, todos: { contar: 2, porcentagem: 1 }, perdeu: { contar: 4, porcentagem: 1.3 }, ganhou: {…
-
-3
votes1
answer45
viewsQ: How to know the parent element size and change child element attributes? [Styled Components]
Good afternoon, how do I know the size of an element to change the width of another child element? I have a Container element that wraps the Table when the table have a width greater than 1400px I…
-
1
votes2
answers403
viewsQ: How to return the years array using React-select
I’m using the react-select to select the React project. I need to return the last five years. And then popular the options={} select. Only that he is only taking the last year, in the case 2020, but…
-
0
votes1
answer43
viewsQ: b-table of the Vue boostrap
I’m using the b-table of Bootstrap of Vue. I have an object in this format: And the table is populating like this: It is throwing the whole object into the field, as we can see in these circular…
-
-1
votes1
answer92
viewsQ: How to filter with javascript
I have an array of objects and I want to filter the properties and return only the properties with the lat and Lon greater than 0 How do I do it? How do I access lat and Lot? I tried something like…
-
0
votes1
answer205
viewsQ: How to Treat 404 Image Error in Vuejs?
I’m using the vuetifyjs Carousel,I’m consuming an api and it works well but when comes an image that does not exist or broken, it is giving error: How do I make it to leave a standard image for when…
-
0
votes1
answer31
viewsQ: Change array Response to object
I’m doing a get and the answer is coming like this: [ {"cep":"01050-070", "rua":"Rua Álvaro de Carvalho", "bairro":"Centro", "cidade":"São Paulo", "estado":"SP"} ] I’d like Re sponse to come like…
-
0
votes2
answers809
viewsQ: How to add IOS 12.2 simulator to Xcode 10.0?
I need to emulate the iphone with IOS 12.2 but my Xcode does not have this option. I saw that in Xcode 10.2 comes with IOS 12.2 but the company mac does not let install because it needs a newer…
-
2
votes1
answer131
viewsQ: What’s the best practice for solving the problem with git?
Next, the scenario is: In my work there is a project with only one branch to master. They had commits that broke the version that was in production. So when I took the project, I needed to clone the…
-
-2
votes1
answer274
viewsQ: How do I remove accents and replace spaces with: _?
I got this guy: this.logger.logButton(`${this.selectedRadio.title}_${this.selectedRadio.cidade}`, { pram: 'paramValue' }); his return comes for example: Rádio Mix_São Paulo I wish the return was:…
-
2
votes2
answers2327
viewsQ: In Ionic, the President is now Service?
I am working on two projects, one does not work generate Preview and the other does not work generate service. Can anyone tell me the difference? What should I change to the latest? service is the…
-
0
votes1
answer528
viewsQ: Cannot add Extension with name 'googleServices', as there is an Extension already Registered with that name
Please, help me out. Problems to connect firebase with firebase wizard in android studio. I’m trying to connect firebase Analytics with Ionic, and for that I have to connect with firebase. I…
-
0
votes0
answers580
viewsQ: ERROR Typeerror: Cannot read Property 'id' of Undefined using mat-table
It is giving this error when I add a new item, for my research I need to use an async, but the examples I found none use mat-table of angular material. I couldn’t apply it. How is an async done in…
-
1
votes1
answer437
viewsQ: Select using Enum
I have a form where one of the fields is a select, and this select is an Enum, I can popular it but can not send the value, always goes with value 0 when I do the post. I wanted a select with two…
-
1
votes1
answer356
viewsQ: How to convert a json object to array
I’m trying to create methods to filter but from what I understand, it needs to be an array, as I do to transform into array and have access to array methods? import { DataSource } from…
-
1
votes0
answers40
viewsQ: Filter items by category with angular 2+
I am new at the angle, and I need to do a filtering. I have a program listing and I want to filter these programs through a menu. For example, in the menu you will have the categories: football,…
-
0
votes1
answer3862
viewsQ: ERROR Error: Cannot find a supporting differ Object '[Object Object]' of type 'Object'. Ngfor only Supports Binding to Iterables such as Arrays
I am trying to display a list using ngFor but is giving this error: ERROR Error: Cannot find a differ supporting object '[object Object]' of type 'object'. NgFor only supports binding to Iterables…
-
0
votes2
answers449
viewsQ: ngFor inside ngFor does not work
I’m trying to access the data with ngfor but I can’t. How should I access each data with ngfor? json: [ { "id": 1, "name": "Programas", "base_Url": "http://uol.com.br", "order": 0, "programs": [ {…
-
1
votes0
answers15
viewsQ: How do I apply renderer2 at the angle?
From what I understand can not use the server-side to directly manipulate and Rendering native elements such as renderer2? import { Component, Input, ElementRef, HostBinding, OnInit, Renderer2 }…
-
1
votes1
answer285
viewsQ: Angular core module error
I am implementing the CORE module but is giving error: ERROR : Unexpected value 'Coremodule in C:/dev/master/src/app/core/core.module.ts' Imported by the module 'Appmodule in…
-
1
votes1
answer685
viewsQ: Example of 5+ angled responsive menu
I took an angular design and the menu is responsive, but the programmer did not do it with angular, did not create a component, he did it separately with javascript and "docked" in the project. I…
-
9
votes7
answers1322
viewsQ: Push element from one array to another array
function that accepts a parameter and is a numerical matrix and will cross the array and if the element is even will push to the an array "even" and if it is odd will push to the array "odd" I tried…
javascriptasked Isa 1,103 -
3
votes4
answers717
viewsQ: In a sentence, how to know which word has the least characters?
In a sentence, how to know which word has the least characters? What I did was turn the string into an array, but I could only return the smallest when it comes to an array of numbers, using…
-
2
votes2
answers2417
viewsQ: How to remove repeated characters from a string?
This is my job: let longest = (s1, s2) => { var s1 = `xyaabbbccccdefww`; var s2 = `yestheyarehere`; let res2 = s1.concat(s2); console.log(res2); };…
-
1
votes1
answer89
viewsQ: V-for access and display list
How do I bring Bullets items? Now I can access the sliders using v-for="item in slider" :key="item.id". On the part of <ul class="c-list-slider__bullets"> had to bring the Bullets items, as I…
-
1
votes1
answer6791
viewsQ: Image animation with Pulse effect and css brightness
It is only possible with css to make an image pulsate and pass a glowing effect?
-
2
votes1
answer774
viewsQ: Change image by clicking, when clicking again return to initial image
I need to change the icon every time I click and keep that other icon until I click again, then it goes back to the initial icon. How do I do this? Below is the code I’m using to create this menu.…
-
0
votes2
answers1314
viewsQ: Redirect an address with javascript
I have a url x and every time the user type this url in browser, I want him to be automatically directed to url y, how to do this with javascript or jQuery?
-
2
votes3
answers563
viewsQ: How to give the "modal" effect on a div?
I have a div which is the progress bar, and would like that div blocked the interaction with div below it. Basically while this div progress bar was appearing, did not allow it to be possible to…
-
1
votes3
answers334
viewsQ: Problem in image rendering
The image is all "pixelated" does not look as it should, which can be? The original image has great resolution and the size is 1200x1200, decrease the size of it also did not change the result In…
-
1
votes2
answers98
viewsQ: Hyperlink problem for connection to phone numbers
I have a field inside a table, where behind the bank the given phone, in a string format (xxx) xxxx-xxxx . I want the moment I click the phone, open the option to choose which program I will use to…
-
0
votes3
answers2815
viewsQ: How to import an html page into another html?
I have a home page where there is a menu that opens dialogs. Today is all in one html only, but I would like to separate, ie decouple and leave this html of dialog separate from the home page.…
-
2
votes1
answer1014
viewsQ: How do I let table tds automatically increase or decrease the size depending on the number of characters?
How to leave the td of table increasing or automatically decreasing the size depending on the number of characters? To prevent the text from breaking line?
-
0
votes0
answers69
viewsQ: Instead of opening a new tab, it downloads
I’m using IE, and to open a new tab, I use window.open. My ie that is 11, opens the new tab normally, but in another ie that is also 11 however a little older, it downloads, how can I solve?
-
0
votes0
answers20
viewsQ: not allow that when dragging the dialog it leaves the useful area of the page
When I drag the dialog to the ends of the page, bottom or right it pops the screen, as if it were outside of html, how can I stop it from going over the ends of the page? put the overflow: hidden;…
-
0
votes1
answer24
viewsQ: how to leave only input from a dialog with draggable disabled?
I have a function that makes the dialog with draggable enabled but I need to be able to edit an input within this dialog. How do I make it so only this input is not inheriting the draggable from the…
-
3
votes1
answer154
viewsQ: How to leave this function javascript
I have this function below and I would like to leave it generic, because the values of innermap, -125,127 and 3 will vary. Instead of creating multiple functions: centralizar(); centralizar1();…
-
1
votes2
answers655
viewsQ: How to assemble dynamic menu?
How to build this menu dynamically using json? That it was mounted according to the order that came. It is possible?
-
0
votes1
answer2545
viewsQ: How do I move the mouse over a particular div when another element appears?
My goal is to have an invisible div, and when you mouse over that invisible div, make another div appear? example: <div class="invisivel"></div> <div class=visivel"> Olá…
-
-1
votes2
answers5228
viewsQ: Example login with javascript
How do I get this login to accept 3 users? And being a valid user it directs to the index? function Login() { var done = 0; var usuario = document.getElementsByName('username')[0].value; usuario =…
-
0
votes1
answer43
viewsQ: Problems with Power
After I installed Bower and I try to give Bower info angular it gives ENOGIT git is not installed or not in the PATH. I use git bash. How do I fix this?
-
1
votes1
answer601
viewsQ: How to do not allow to type repeated numbers with angular
How do I not allow repeated numbers to be entered in the validation? In my current validation, I can make it mandatory to fill in the fields to enable the save button and in this input…
-
0
votes1
answer236
viewsQ: Validation does not work with ng-model
Why doesn’t this validation work? When I was just $scope.exibeValidacaoTarefa = function(){ return $scope.atividadeInput == null || $scope.atividadeInput.descAtividade == null ||…
-
1
votes1
answer1218
viewsQ: Prevent typing letters into the angular input
how to prevent letters being typed into a input where only angular numbers should be typed? Only with directives is it possible?
-
2
votes2
answers227
viewsQ: Function in jquery disabled button
How do I make for a div appear when a button is disabled, and when enabled I want this div stay hidden $(document).on('ready', '#btn-cadastra-atividade', function () { $this = $(this)…
-
3
votes1
answer1480
viewsQ: How to do checkbox validation at the angular
I need the add button is only activated if at least 1 item of the list has been checked. For text inputs, I used ng-required="true" <div class="modal fade" id="listagem-tarefas" tabindex="-1"…
-
0
votes0
answers39
viewsQ: How to clear the IE 10 and 11 cache via a javascript function?
How to clean the cache IE via a javascript function? I want every time you click on a particular button, run a function that cleans the cache of IE 10 and 11. I used: function atualiza() {…
-
2
votes1
answer43
viewsQ: How do I make a function only run on IE 10 and 11?
I want a chunk of code (a specific function) to run only when the browser is IE 10 and 11, when it is Firefox or Chrome for example, I want that function to be ignored. That’s possible?
-
3
votes1
answer699
viewsQ: Form validation in select with angular
How the select is validated using the ng-required="true"? For input I’m putting like this: <form name="tarefasForm"> <input type="text" ng-model="tarefa.solicitante" ng-required="true"…
-
0
votes2
answers354
viewsQ: Why doesn’t this setTimeout work?
My goal is when I click the button, 3 seconds after a div reread the page... Why does that code not work? <button id="btn-cadastra-tarefa" ng-click="adicionaTarefa()" onclick="atualiza()"…