Posts by veroneseComS • 2,752 points
368 posts
-
0
votes2
answers291
viewsQ: Is it possible to pass a formgroup to the parent component?
I have a parent component and a child component, I need to pass the formgroup of the child component to the parent component, I tried it that way: Child element: @Output() formGroup = new…
-
2
votes1
answer53
viewsQ: Alignment with two elements in the flexbox: One centered and the other at the end of the flexcontainer
I’m trying to align two elements in the same line: one centered and the other at the end of the flex container. I get the expected result with this code: <div class="row"> <div…
-
1
votes1
answer52
viewsQ: Hide kendoUI text editor button
I’m using the kendoUI text editor I need to remove the last button of the editor (insert image). The rendered tag is the last, which has inside the image button. I tried something like:…
-
1
votes1
answer139
viewsQ: Access a property of a saved object in localstorage
After logging in, I saved a user’s id and token to my localStorage via a currentUser-named object. How can I access the id and token property of this object when recovering from localStorage? What I…
-
0
votes1
answer54
viewsQ: regex.test is not a Function
I need to apply a mask that formats both landline and phone. I tried to: <input [pattern]="customPatterns" type="text" class="form-control" id="numero" name="numero"…
-
0
votes1
answer1013
viewsQ: Sqlexception: The INSERT statement conflicted with the FOREIGN KEY constraint
I have a 1-n employee relationship. I used the Entity Migrations to create the tables based on my models. I checked in the database and the tables were created with their respective PK and FK.…
-
5
votes1
answer1690
viewsQ: Tolistasync() - Sqlnullvalueexception: Data is Null. This method or Property cannot be called on Null values
I’m getting the following error while trying to list all the records of a model: Sqlnullvalueexception: Data is Null. This method or Property cannot be called on Null values.…
-
0
votes0
answers453
viewsQ: Invalidcastexception: Unable to cast Object of type 'System.Int32' to type 'System.Int64
I’m starting with Entity following this tutorial. My method is giving error in function at the time of Savechanges(); My Controller: [Route("api/[controller]")] [ApiController] public class…
-
0
votes0
answers93
viewsQ: Image is not rendering in email
I am sending email with Aravel, the image img src that I send by email is sent by frontend: When uploading an image the image variable src is assigned to the image: handleInputChange(e) { var file =…
-
0
votes0
answers31
viewsQ: Heroku can’t find my email view file
I have a Windows application hosted in Heroku, this application has a function that sends an email to a user using a Windows that is inside the Resources/views/emailrecruitment folder.: public…
-
0
votes1
answer460
viewsQ: How to Upload Shared Server Api
I’m having a hard time climbing my shared server-enabled api. My frontend is angular, I gave an ng build --Prod and through Filezilla transferred to the folder public_http on the hostgator server.…
-
0
votes1
answer25
viewsA: ng2Charts Linea: How to apply responsiveness to this graph?
I managed to solve it that way: HTML: <canvas baseChart width="600" height="larguraGrafico" [datasets]="lineChartDataMes05" [labels]="diasMesAtualEscolhido" [options]="lineChartOptions"…
-
0
votes1
answer25
viewsQ: ng2Charts Linea: How to apply responsiveness to this graph?
I’m using the online chart of ng2-Charts, It has a good view on my monitor, but in mobile is a bad view of the data. My chart in the default display of the monitor: The same resized graph: My html:…
-
0
votes1
answer44
viewsQ: *ngSwitchCase is not rendering the element as per condition
I have two components that must be rendered according to an expression: HTML: <div *ngFor="let avaliacao of avaliacoes" [ngSwitch]="escolha_layout_avaliacao">…
-
0
votes1
answer28
viewsQ: For() you’re not going through every time you should
I have the following function: geraVariacoes(){ let produto = new Array() console.log(this.listaValorAtributosColunaUm.length) for (let i = 0; i < this.listaValorAtributosColunaUm.length; i++) {…
-
0
votes2
answers1130
viewsA: Angular 7 - Creating a Stepper/Wizard
The angular material has a very cool Stepper, see: https://material.angular.io/components/stepper/overview Just install the necessary packages: npm install --save @angular/material @angular/cdk…
-
0
votes0
answers25
viewsQ: Function that receives from another function an array coming from the backend via http request
I have a function that I must pass to another function an id, which must perform a query in the backend and return me an array, I need to return to the initial function this listing, but when I give…
-
0
votes1
answer319
viewsA: Button fixed to the side of a container
I managed to resolve by adding this class in my div that has the button: .divBotoesVariacao{ float: right position: sticky left: 50% top: 50% transform: translateX(-50%) }…
-
0
votes1
answer319
viewsQ: Button fixed to the side of a container
I have a container and inside I have columns that have cards inside. I need my button to be fixed to the right of the cards, but you should only follow the scroll of the screen in this container. My…
-
0
votes1
answer200
viewsA: Authguard doesn’t work, what to do?
Maybe you need two different guardians. One in case the user is already logged in and the other case is not yet logged in. Here I go like this, maybe I’ll help you: export class AuthGuard implements…
-
1
votes2
answers1407
viewsA: Compare two dates and times and check if one is larger than the other typescript
I got it that way: verificaVenceuConta(conta):boolean{ var partesData = conta.venc_token.split("/") partesData[1] = partesData[1] - 1; partesData[2] = partesData[2].substring(0,4)…
-
0
votes2
answers1407
viewsQ: Compare two dates and times and check if one is larger than the other typescript
I created a function that receives an account, I need to check if a property conta.venc_token is longer than today’s date, if it is, return true(because it is an invalid token), otherwise return…
-
0
votes1
answer639
viewsQ: Use position Absolute to always leave element at the bottom but without overlapping another element
Currently I have a sidenav made with Angular Material. I have a list with menu and submenus, and at the end I have a logo. My problem is that when all the menus inside my sidenav are opened, they…
-
0
votes2
answers369
viewsQ: Center an element with position Absolute
I’m trying to center a button on my card. I’d like to get that result: need to be with position Absolute because the other cards sometimes have larger description and the "See details" button gets…
-
1
votes1
answer136
viewsQ: Sort string and ASC number
I need to sort a table upwards, but the target column has numbers (1,2,3,4,5 in String format) and letters (P,M,G,GG). How can I do a query that first sorts the strings (G,M,P) in ascending order,…
-
0
votes1
answer23
viewsQ: Model copular only with model data at angular
I am currently making a request get in the backend but is returning data that I will not use, I would like to copulate my model only with the data that was created. My model: export class Cliente {…
-
0
votes0
answers225
viewsQ: Change login password in the Standard
I am trying to change the login password of the user in Windows, to log in I use Auth::atempt and as a parameter email and password, this password does not exist in my users table. Where does the…
-
0
votes1
answer127
viewsQ: Update of data from Laravel user table
I’m trying to perform an update, the successful json Sponse is returned, but when I consult the database is not changing the data. I tried to: Route::put('alteraDadosPerfil/{id}',…
-
0
votes1
answer26
viewsA: Row Striped does not work properly on my *ngFor
I got it that way: <div class="row ml-4" *ngIf="visivel"> <div class="divJanelaResultadoParcial" id="autocompletar" class="col-xl-9 divJanelaResultadoParcial"> <a…
-
0
votes1
answer26
viewsQ: Row Striped does not work properly on my *ngFor
I’m trying to apply an effect of row stripped on the lines of a *ngFor but apparently it is being applied in all my Rows. I tried something like: HTML <div class="row ml-4" *ngIf="visivel">…
-
1
votes1
answer112
viewsQ: For object in typescript, how to get the object name?
I am running a repeat structure to check which fields of my form are invalid. I need to get the name of the first field that is invalid. I tried something like: for(var campoObrigatorio in…
-
2
votes3
answers155
viewsA: How do I catch a backend error and not log into the application?
Try trading your subscribe for this one: .subscribe((res) => { if(res.message == 'user valido'){ this.router.navigate(['dashboard']) }} ,(err: HttpErrorResponse) => { alert('erro'); }…
-
0
votes1
answer448
viewsA: Cors error in the Laravel when using middleware jwt.auth
It was resolved on the Apache server by changing the apache.conf file: Header set Access-Control-Allow-Origin "*"
-
0
votes1
answer43
viewsA: Search pipe filter does not update changes to my template
I was able to resolve the changes in the template using Pure:false @Pipe({ name: 'search', pure: false, }) https://angular.io/guide/pipes…
-
0
votes1
answer43
viewsQ: Search pipe filter does not update changes to my template
I own the following search pipe filter: import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ name: 'search' }) export class SearchPipe implements PipeTransform { transform(items: any[],…
-
1
votes1
answer448
viewsQ: Cors error in the Laravel when using middleware jwt.auth
When I try to make an http request inside my jwt.auth middleware I receive: :9000/#/Dash/typeproducts:1 Access to Xmlhttprequest at 'https://api2.jcontrole.com.br/api/notificacoes/gerais' from…
-
0
votes1
answer221
viewsQ: Class does not exist CORS Standard
I’m trying to implement a Cors middleware on the Laravel, but you’re saying my class doesn’t exist: "message": "Class App Http Middleware CORS does not exist", "Exception": "Reflectionexception",…
-
0
votes1
answer228
viewsQ: Thread 1: Signal SIGABRT when trying to simulate application in XCODE
I am trying to test an application on Xcode but am getting this error on main: int main(int argc, char* argv[]) { @autoreleasepool { int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");…
-
1
votes1
answer18
viewsQ: Unknow table in field list when performing select + sum
I’m trying to sum up the values of several different tables, tried two ways: Without citing the name of the database: SELECT SUM(animais_adocao.animal_pendente + animais_encontrados.animal_pendente…
-
0
votes0
answers77
viewsQ: Error generating IOS application build in IONIC
I’m trying to build an IOS app on Ionic. I rode in the terminal: ionic cordova build ios --release --prod But I’m getting: build-release.xcconfig line 28: Unable to find included file "..…
-
2
votes1
answer44
viewsQ: Different image colors when applied in a <video> tag
I’m using a video using the library material design bootstrap The problem is that the video quality looks different when I run in the browser and in a video player: Image in the browser: Image in…
-
2
votes3
answers397
viewsQ: Footer does not remain at the bottom of the page
I have the following footer: <footer class="page-footer font-small footer-fundo-cinza"> <div class="container"> <div class="row pt-3"> <div class="col-md-4"> ... </div>…
-
0
votes1
answer427
viewsQ: My cron is not running
I’m trying to make a cron in the Standard to send an email every 1 minute, but no e-mail has been sent so far. Man Emailadocaocron.php: <?php namespace App\Console\Commands; use…
-
0
votes1
answer85
viewsQ: How to show a loading only on the element on which it was clicked
I have the following repeat structure: <div *ngFor="let notificacao of notificacoes; let i = index"> {{notificacao.marketplace}} {{notificacao.data_entrada | date:'dd/MM/yyyy'}}…
-
0
votes0
answers68
viewsQ: Uncaught (in Promise) Domexception when trying to play sound at the angle
I’m trying to play a sound at the angle, but I’m getting two errors. The first: Uncaught (in Promise) Domexception push..…
-
1
votes0
answers26
viewsQ: Angle navbar expansion effect
I’m trying to make a navbar expansion effect at the angle. When you click on the "show information" link the content should go up, and when you click on "hide", the content should go down. The…
-
0
votes1
answer20
viewsQ: Type "Contasml" is Missing from type Contasml[]: length, pop, Concat and 26 more
I’m having the following error in my visual studio code editor: Type "Contasml" is Missing from type Contasml[]: length, pop, Concat and 26 more My model: export class ContasML{ id: number email:…
-
1
votes0
answers56
viewsQ: Errorexception: unserialize(): Error at offset 0 of 9947 bytes in file in Laravel
I’m having this error in the Standard when trying to fetch data from my database: Errorexception: unserialize(): Error at offset 0 of 9947 bytes in file Controller: public function show(Request…
-
0
votes0
answers586
viewsQ: Module build failed (from . /node_modules/Sass-Loader/lib/Loader.js after upgrading Angular version
After upgrading the angular version from 6.1 to 7, when I went to give ng serve returns me the following error: "ERROR in . /src/app/Components/anuncios.component.scss Module build failed (from .…
-
0
votes1
answer65
viewsQ: Element positioned with position Absolute is expanding upwards
I have a nav and within it I have a notifications icon. I made a *ngIf to show a card when the user clicks on the icon, I positioned this card with position Absolute, but within the card I have…