Posts by veroneseComS • 2,752 points
368 posts
-
0
votes0
answers63
viewsQ: *ngFor with ngModel and value
I have the following repeat structure: TS resposta: string[]; HTML: <ion-card *ngFor="let pergunta of perguntas; let i = index"> I have an ngModel that I need to print its value at its value:…
-
0
votes1
answer225
viewsQ: Add value to an input as per selection of an angular/Ionic combobox
I have an input text and need that when I choose an option in a combobox receive this value, but without deleting what is already written. What I tried to: <ion-textarea name="resposta" #resposta…
-
0
votes1
answer1206
viewsQ: How to iterate array within an angular ngFor/Ionic
I have the following model: export interface Perguntas{ historico:[{id_historico: number, resposta_historico: string}] } In my file ts I perform an http request for a service that returns these…
-
2
votes1
answer277
viewsA: Hide information from an Ionic/angular Collapse
After a search I managed easily through the following code: (click)="hideinfo[i] = !hideinfo[i]" [hidden]="hideinfo[i]" I declared a hideinfo array on my ts: hideinfo[]; I got my ng index for…
-
0
votes1
answer277
viewsQ: Hide information from an Ionic/angular Collapse
I have a Collapse that works well, however I need to hide/show the trigger according to the index of that product. What I currently have: Html: <p data-toggle="collapse"…
-
1
votes1
answer190
viewsQ: How can I remove an array value by clicking on the typescript checkbox
I have a checkbox that when clicked makes a push in an array of name perm_telas, but when I select again a check already selected it is not removing correctly the value of the array. I tried…
-
0
votes1
answer286
viewsA: Transform html image into angular blob
After a few hours of searching, I was able to find a function that meets my need: getBase64Image(img) { var canvas = document.createElement("canvas"); canvas.width = img.width; canvas.height =…
-
0
votes1
answer286
viewsQ: Transform html image into angular blob
I have the following image: <img id="preview" class="cropped rounded-circle align-center animated fadeIn" width="220px" height="220px"> I need to pass it to a function that will convert to…
-
0
votes1
answer202
viewsQ: How to send an image per post at the angle
I wonder how I can be sending an image to an api at Angular 6 through the post method. First I must encode this image in base 64 and then I send all that coding as a key value????
-
0
votes1
answer52
viewsA: My jquery function stops working when I change route
I couldn’t find a good practice of reloading only the scripts when the page opens, so I’m giving a Reload on the page before it loads: <a (click)="reloadpage()"…
-
0
votes1
answer52
viewsQ: My jquery function stops working when I change route
I have a jquery function responsible for cutting a photo when a photo upload takes place: document.addEventListener('DOMContentLoaded', function() { function readImage() { if (this.files &&…
-
-1
votes1
answer90
viewsQ: ngFor with checkbox is selecting all values
I have the following checkbox with a repeating structure: <div *ngFor="let tela of telas" class="custom-control custom-checkbox check"> <input type="checkbox" id="{{tela.nome_tela}}"…
-
0
votes0
answers59
viewsQ: Add more than one append to the angular http header
I’m making a Interceptor which should add to my header a token and an Authorization whenever the value of authToken is different from null. My problem is how to add a append in my header. I tried…
-
0
votes1
answer85
viewsQ: Cannot read Property 'token' of Undefined when receiving angular localstorage object
My login function keeps on localstorage a token returned from the api: localStorage.setItem('token', res.data.token); Right after logging in, I need to pass this token to another function, but I…
-
2
votes1
answer307
viewsQ: Send headers in angular http request
I need to send three values in my header in http request, but when I check in the browser I realize that my headers have not been sent. I tried something like:…
-
0
votes1
answer41
viewsQ: Close sidenav when width is less than 700
I have a sidenav of the angular design material that I need that when the width is less than 700, open the screen with the Nav closed, and when it is greater than 700 the screen can open with the…
-
0
votes1
answer296
viewsQ: Routes at Angular 2+
My application starts with the Logincomponent component: bootstrap: [LoginComponent] In my login routing module I set the following routes: const loginRoutes: Routes = [ {path: 'dash', component:…
-
1
votes1
answer876
viewsQ: Close modal by clicking outside
I have a modal that when I click out of it I would like it to close. For reasons of position problems, I’m using data-backdrop=false My modal: <div class="bd-example"> <button type="button"…
-
2
votes2
answers767
viewsA: Anchor link to direct to a div does not work
I managed to solve using: TS scroll(el: HTMLElement) { el.scrollIntoView(); } TEMPLATE <a (click)="scroll(target)" <div #target>Your target</div>…
-
1
votes2
answers767
viewsQ: Anchor link to direct to a div does not work
I’m using Angular 2+, I’m trying to add an anchor that when clicked will take me to the target div, but when I click the anchor, my site is reloaded and adds the #parallaxdiv link after the…
-
1
votes1
answer33
viewsQ: Dropdown does not find the target
<button data-toggle="dropdown" data-target="#teste" class="btn btn-blue-grey btn-lg btn-group" mat-button>Configurações <i class="fa fa-caret-down"…
-
0
votes0
answers83
viewsQ: Annular Method of Angular Material Design
I have a menu of the angular material design that when it opens it focuses on the first menu item, I would like to remove this method. I saw on the web site of angular material that this method has…
-
1
votes1
answer531
viewsQ: Working with app routing at angular
My application starts in the Appcomponent, in the Appcomponent I set the <router-outlet> </router-outlet> Set the following routes: const appRoutes: Routes = [ { path: '', component:…
-
0
votes0
answers373
viewsQ: Slowness in Node ng serves when spending a certain time
I start my server with ngserve, with the passage of time the computer will be slow until it is unusable, I have to close the Node and open again, then goes for a while. Has anyone been through it?…
-
0
votes1
answer88
viewsQ: Change label class to active after angular http request
I have a component of the material design bootstrap that after an http request it is filled in, the problem is that it does not change to the "active" class, having the result of the photo. <div…
-
0
votes0
answers756
viewsQ: HTTP POST request with x-www-form-urlencoded in Agular 6
I need to make an HTTP POST request with x-www-form-urelcoded at angle 6. I tried something like: pesquisaEmail(email): Observable<any>{ let headers = new HttpHeaders();…
-
0
votes0
answers672
viewsQ: Bad request requsition http post angular
When performing an http post request, I am receiving: Object { headers: {...}, status: 400, statusText: "Bad Request", url: "https://hidden address", ok: false, name: "Httperrorresponse", message:…
-
1
votes1
answer691
viewsQ: Rescue data from another angular component
I have a component called login that when you login fills the user object data, I need to take the "job" field of this object and receive in another component. I tried to: login.componentts.: public…
-
0
votes1
answer1488
viewsQ: Receive http client request status and login token at the angle
My backend api returns a token and a status, I need to save the token to localstorage and redirect the user to the welcome screen if the status returned from the api is 200. I tried something like:…
-
0
votes1
answer428
viewsQ: Save return service variable in Angular
I have a service that returns me a user object with a user id: My object: export class Usuario{ email: string; password: string; } In my component I urge my object to get the return of service:…
-
0
votes1
answer225
viewsQ: Angular 2 Error Httpresponse not found
I am trying to implement a login screen that accesses an api through a server, I need to pass the email and the user password to the api, and it returns me NULL in case of error or a number in case…
-
1
votes0
answers190
viewsQ: "Cannot set Property 'classname' of null" error function Angular 2+
In my template I have a button that calls the login function: <button type="submit" name="entrar" (click)="fazerLogin()" routerLink="/home" class="login"…
-
1
votes1
answer108
viewsQ: 'app-welcome' is not a known element Angular 2+
My components are organized as follows: app module. src/ App.Module.ts: Importa os módulos dos componentes <br> App.Routing.module.ts: Rotas raiz do sistema Bemvindo.module src/app/components/…
-
3
votes1
answer733
viewsQ: Responsive design in 2+ angular
Is it possible through the 2+ angle to get the size and width of the browser and from there send this data to the css in order to make it responsive? Is there any other way to leave responsive…
-
2
votes4
answers90
viewsQ: Is there a difference in these two querys?
Is there any difference in these two querys? What is the difference of using parentheses in and? SELECT * FROM produto WHERE grupo = 'bebidas' AND preco < 10 OR estoque <= 100 ORDER BY estoque…
-
2
votes1
answer72
viewsQ: Media queries not applying the css according to device width
I’m trying to create a responsive layout. Some elements he’s applying css as quoted in media queries, some others are picking up web css. How can I fix it to get the corresponding css of what I…
-
0
votes1
answer4470
viewsQ: Place elements side by side css/html/bootstrap
Need to put these two elements together, how can I do it? Using html/css/bootstrap. My code: Html: <div class="container"> <div class="pesquisa"> <form id="filter">…
-
0
votes1
answer592
viewsQ: Check if a username already exists in the angular 2+ php database
I need to check if a user already exists before registering. I have the following methods: Register.component.ts: import { AlertService } from './../alert.service'; import { Component, OnInit } from…
-
0
votes0
answers99
viewsQ: Show table only if you have widgets at angular 2+
I have the following table: <table class="table table-bordered"> <thead> <tr> <td>Nome</td> <td>Email</td> <td>Data</td>…
-
1
votes1
answer895
viewsQ: How do I pick up the location of a marker and store it in the database using google map?
I have a marker on my map, it is "draggable", I would like to know how I can find the latitude and longitude of this marker, and later store in the database. I read the google map api documentation…
-
1
votes3
answers963
viewsQ: store the value of a query in a php variable
I want to save the value of a select to a php variable, and then show it in html. I tried something like: function totalEspumas(){ $banco = abrirBanco(); $quantidade_pedidos = "SELECT…
-
0
votes1
answer138
viewsQ: I can’t do Insert with array
I have a form with the following elements: <form name="dadosLocacao" action="registra_locacao.php" method="POST"> <div class="form-group"> <label for="filme">Filme</label>…
-
2
votes1
answer689
viewsQ: Remove accents from an array
I have a select in which it is completed through a bank query: <select class="form-control" name="select_cidades"> <option>Selecione a Cidade</option> <?php $result_cidades =…
-
1
votes1
answer5860
viewsQ: Composite primary key using a foreign key
It is possible to create a composite primary key using a foreign key? I have the table mov_estoque, where I thought to put as composite key the id_mov and id_prod, however, id_prod is a foreign key…
-
1
votes1
answer3488
viewsQ: How to chart with Google Charts and PHP
I need to make a chart where it shows total entries and exits in pizza, I tried something like: <?php //Estrutura básica do gráfico $grafico = array( 'dados' => array( 'cols' => array( ),…
-
0
votes2
answers35
viewsQ: Query returning divergent result
I have two tables: Table accounts with column value with two records totaling 1100; Table receipts with column value with a record totaling 500 I want to perform a query where I receive the sum of…
-
0
votes1
answer389
viewsQ: Change title color in google graphics
I’m making a chart using google Harts and want to change the title color. My chart settings are through a json file: 'config' => array( 'title' => 'Despesas', 'width' => 400, 'height' =>…
-
0
votes0
answers132
viewsQ: Between with varchar field type
I have two fields where an initial and final date is placed: <form name="filtroClientes" action="consulta_contas.php" method="POST"> <div class="form-group"> <label for="nomefiltrar"…
-
0
votes0
answers62
viewsQ: Recover variable via ajax requests
I have the following fields: <div class="container"> <div class="form-group"> <label for="nomefiltrar" style="color:#E4CDAC; font-size: 17px; font- family:Arial">Nome</label>…
-
0
votes1
answer89
viewsQ: Recover field without include/require
I have a report created in mPDF that performs a select through the following function that is found on the page "registra_pessoa.php": include_once("registra_pessoa.php"); $pessoas =…