Posts by veroneseComS • 2,752 points
368 posts
-
0
votes1
answer61
viewsQ: Jquery script only works after page re-load
I have a jquery script that only works after page re-load. Why does this happen? My script: $(document.body).ready(function() { $('.list').each(function(index){ var topli =…
-
0
votes2
answers98
viewsQ: <ion-tabs> is not rendered
I have a page called footer-tabs that should render the Ionic tabs, but it is not being shown. My footer-tab template: <ion-tabs> <ion-tab tabIcon="list"…
ionicasked veroneseComS 2,752 -
0
votes1
answer3539
viewsQ: Change CSS property in Typescript (Angular)
I have a list that when I click on it, I need the display: listview be exchanged for display: none. My list is composed this way: <li class="sub"> <a class="dropdown-item waves-effect"…
-
-3
votes2
answers144
viewsQ: Repeat structure that compares equal values and prints the match
I have two arrays: operator.table_perm has screen ids and the array canvases has in addition to the id, the name of the screens. I need to create a repeat structure that compares the two arrays and…
-
0
votes0
answers27
viewsQ: Line break is not occurring when exceeding container size
I have a Paginator inside a container-Fluid, it turns out as the Paginator has many pages, he is not performing the line break, happening this: I tried to apply on my div: word-wrap:…
-
2
votes1
answer245
viewsQ: No component declaration after applying Lazy loading
I am trying to apply Lazy loading on my application, but after I removed the module import in the app.module and left only on loadChildren, my application does not recognize one of my component…
angularasked veroneseComS 2,752 -
-1
votes2
answers415
viewsQ: auth::Attempt method is not logging in
I’m trying to use the Auth::Attempt method to log in to my api, but it always falls into Else, even when it has in the database the correspondence of that email/password. Where can I set up this…
laravelasked veroneseComS 2,752 -
0
votes0
answers417
viewsQ: Laravel can’t find my class
I have a controller that is located in: app/Http/Controllers/Auth/LoginController that has the login function. I created a route in my api.php for when to login access my method:…
-
2
votes1
answer264
viewsQ: How to use Trackby in ngFor in Angular?
Hello, I have a repeating structure where a pipe filter can be applied.I have read that trackBy can help performance because it does not render the DOM unnecessarily. I put it in my component:…
angularasked veroneseComS 2,752 -
1
votes1
answer90
viewsA: My filter pipe is returning the wrong columns from my table
To whom interested, I was able to solve by switching inputs: [(ngModel)]="custoFixo[i]. value" for the variable iterated by ngfor: [(ngModel)]="custofixo.valor" And the combobox that was leading…
-
2
votes1
answer90
viewsQ: My filter pipe is returning the wrong columns from my table
I tried to deploy a filter pipe but realized two wrong behaviors. Having two elements in my table: sfafasf:150,00 and other variable cost: 80,00 When you put the name "other variable cost" in the…
-
-1
votes2
answers49
viewsQ: Change table name with :Nth-of-type
I’m trying to change the name of a column of my table through css, tried something like: th#colunatableprod:nth-of-type(1):before { content: "Produto"!important; } My table: <table…
-
2
votes2
answers15167
viewsQ: Element superimposing the other CSS
My website consists of a header and below it a container-fluid with screen information. The problem is that mine header is superimposing part of mine container-fluid: HTML: <h3 class="card-header…
-
1
votes2
answers102
viewsA: Trouble with the $ at the angle!
This script you are adding is Jquery? You must create a new file within your js folder and import it into your angular.json within the script key: Ex: "scripts": […
angularanswered veroneseComS 2,752 -
0
votes0
answers301
viewsQ: Remove quotes from a json string with replace typescript
I need to remove the quotes from a string I receive in json, for this I am creating a pipe, but I am not able to remove double quotes. I tried something like: @Pipe({ name: 'prettyprint' }) export…
-
0
votes1
answer52
viewsQ: Flip over elements Collapse
I have an element that I want to turn it as I click on it, this element is a Collapse: <td><a class="fa fa-chevron-down iconedetalhes" data-toggle="collapse" href="#collapse{{i}}"…
-
1
votes1
answer111
viewsA: My directive does not work in Angular
I was able to solve by taking this.bordaCorColuna() function from the constructor and moving to ngOnInit. worked as a charm.
angularanswered veroneseComS 2,752 -
0
votes1
answer111
viewsQ: My directive does not work in Angular
I have the following directive: import {Directive, ElementRef, Input, Renderer} from '@angular/core'; @Directive({ selector: '[tipo-coluna]', }) export class TipoColunaDirective { @Input()…
angularasked veroneseComS 2,752 -
0
votes1
answer236
viewsQ: Sum returns NAN even when converting the number to angular
I have a repeating structure that should add some values: The variable qtdeEstoque was defined as number and the variable variacaoForm.value.variacoes.estoque_variacao is a number, but when I try to…
-
0
votes1
answer78
viewsA: Repeat structure to insert data into a form group
I was able to solve it this way: for(let i=0;i<this.produto.variacao.length;i++){ this.variacoes.push(this.createFormGroup(produto,i)); } createFormGroup(produto?: any, indice?: number):…
angularanswered veroneseComS 2,752 -
-1
votes1
answer78
viewsQ: Repeat structure to insert data into a form group
I have the following form group: this.variacaoForm = this.fb.group({ variacoes: this.fb.array([this.createFormGroup()]) }); createFormGroup(): FormGroup { return this.fb.group({ valor: '', preco:…
angularasked veroneseComS 2,752 -
0
votes2
answers475
viewsQ: Form group does not update angular template
I am using formgroup and need to fill in the fields of my formgroup receiving data from an array. I tried something like: My Form Group: produtoForm = this.fb.group({ nomeproduto: [''], valorcompra:…
angularasked veroneseComS 2,752 -
0
votes1
answer23
viewsA: Form Builder in Dropbox element
If someone goes through this, exchange the dropdown for a select: <select formControlName="tipo" class="form-control" aria-labelledby="dropdownMenu3"> <h6 class="dropdown-header">Tipo de…
-
0
votes1
answer23
viewsQ: Form Builder in Dropbox element
I have the following form group: createFormGroup(): Formgroup { Return this.fb.group({ Description: ''' value: '', sku: ' guy: '', }); } where: 'type' should come the value of the dropdown. My drop:…
-
3
votes2
answers5245
viewsQ: Form Builder with angular array
I need to create a form that dynamically increments three fields by clicking a button. I searched the angular site but there just shows how it does with a field. I tried something like: <div…
angularasked veroneseComS 2,752 -
1
votes1
answer153
viewsQ: Local notification smallIcon does not show IONIC
I need to change the smallIcon of my local notification, but I already set the location in my Resources but it still doesn’t appear. I tried something like: this.localNotifications.schedule({ id:…
-
0
votes1
answer1863
viewsQ: Undefined index Laravel
When performing a request I’m getting undefined index. The code in question: protected function create(array $data) { return User::create([ 'name' => $data['name'], 'email' => $data['email'],…
-
0
votes1
answer691
viewsQ: "Undefined Property: stdClass::$email" Laravel
My Validator returns the existing errors in the request. I would like to check if in the variable I save my errors has the error email to return the correct answer. I tried something like: public…
-
1
votes1
answer937
viewsA: Add and remove classes in Angular
To those who are interested, I was able to solve in the following way: fechaCardNotificacoes(){ let previewimg = this.el.nativeElement.querySelector("#cardnotificacao");…
-
0
votes1
answer937
viewsQ: Add and remove classes in Angular
I have a card that will appear on certain occasions. As an effect I am using the bootstrap design material to give a Zoomin. I am using ng4-clickout to when click out of my element it apply the…
-
0
votes2
answers59
viewsQ: Top calculation on scss
I have a container that has a variable height, depending on the computer resolution. I need to calculate when top should use so that the content is centralized. I tried something like: .container {…
-
0
votes1
answer1067
viewsQ: Percentage mask at angle
How can I make a percentage mask using angular 2+? I want to apply it to my input: <input type="text" [(ngModel)]="produto.indice_lucro" name="indicelucro" id="indicelucro"…
angularasked veroneseComS 2,752 -
0
votes1
answer47
viewsQ: Send data to angular guardians
I need to make a Guard to check if a user has permission the system screens. I have an array saved in localstorage that informs me the permissions of a user. Example: [1,2,5], where the number is…
-
0
votes1
answer58
viewsQ: Replicate changes from one repository to another
I have 3 repositories that use the same component. I would like when making changes to this component, to be able to replicate to the other. It is possible?
-
1
votes2
answers1717
viewsQ: Ngmodel with angular checkbox
I have a checkbox that is iterated on an ngfor: <div *ngFor="let tela of telas; let i = index; trackBy: getIndex" class="custom-control custom-checkbox check"> <input type="checkbox"…
angularasked veroneseComS 2,752 -
0
votes0
answers146
viewsQ: Message when mouse on disabled button in angular
I would like to see a message that has to fill in the required fields when you pass over the disabled button at the angle. Currently I have: <button (mouseover)=testefunction() type="button"…
-
1
votes0
answers445
viewsQ: Reflectionexception Class App Http Controllers API Usercontroller does not exist
When I try to hit the api/Register route, I get: Reflectionexception Class App Http Controllers API Usercontroller does not exist My Usercontroller <?php namespace App\Http\Controllers\API; use…
-
1
votes1
answer547
viewsQ: No such file or directory (SQL: select * from 'Companies')
I’m trying to make my first API with Laravel/PHP. I’m trying to test with the php Artisan Tinker: var_dump( App\Company::all() ); However, I do receive: Illuminate/Database/Queryexception with…
-
0
votes2
answers200
viewsQ: Route guard on the Ionic possible?
I am currently securing my routes in ngOnInit, if you have the token key in localStorage, then it remains on the Home route (My root route is home). Otherwise, it redirects to the login screen. The…
-
2
votes1
answer34
viewsQ: Design requirements for publishing apps in the Appstore
I am developing an Ionic application, I have checked the layout/design documentation for Appstore applications, but I would like to know if there is any design requirement that I should be concerned…
-
0
votes2
answers43
viewsQ: getVersionNumber() returns me Undefined on Ionic
I need to check the application version to make validations, the problem is that the promisse getVersionNumber() is returning me Undefined. I tried something like: ngOnInit(): void { let versaoApp;…
-
0
votes1
answer504
viewsA: Remove stack page in Ionic
To those who are interested, I was able to solve in the following way: this.IntervalId = setInterval(()=> { this.listaPerguntas(); },12000); //A cada 5 minutos verifica se existe uma nova…
-
-1
votes1
answer504
viewsQ: Remove stack page in Ionic
I have the following structure Home > Page 1 My Page 1 every 10 seconds performs an http request. I realized that when I move from Page 1 to Home, it continues to carry out the requisitions. I…
-
-2
votes2
answers736
viewsQ: Change javascript object names
I have the following object: { "Search Engines": [ { "conta": "Search Engines", "hits": 5, "bytes": 50189 }, { "conta": "Search Engines", "hits": 1, "bytes": 7601 }, { "conta": "Search Engines",…
-
0
votes1
answer335
viewsQ: Group objects by a certain angular key
I have three objects: 0{ conta: "teste", data: "01/01/2018" }, 1{ conta: "teste", data: "01/03/2018" } 2{ conta: "teste2", data: "02/02/2019" } I need to group the objects that have the account with…
-
1
votes0
answers67
viewsQ: Fields disappearing in Ionic after selecting a select match
I’m implementing a feature where the user selects an option from select and is sent to a function that adds to my model. For some reason, after selecting my option select, the next field of mine…
-
1
votes1
answer27
viewsQ: Proxie no Ionic
I’m having trouble making http requests on Ionic, I saw that one way to bypass CORS is by using proxies. I tried something like: Ionic.config.json: { "name": "appIonic", "integrations": { "cordova":…
-
0
votes1
answer454
viewsQ: I can’t test my Ionic app: Cors error
I’m having a lot of problems testing my Ionic app. As it has Httpclient requests, I am having problems with Cors. I thought about generating the production build and testing on mobile, so I tested:…
-
0
votes2
answers278
viewsA: Http post request on Ionic does not send data as x-www-form-urlencoded
Guys, I got the requisition this way: public login(credentials):Observable{ return this._http.post<any>(AppSettings.API_ENDPOINT + 'loginnovo', {email: JSON.stringify(credenciais.email),…
-
0
votes2
answers278
viewsQ: Http post request on Ionic does not send data as x-www-form-urlencoded
I need to make an http request to log in to my Ionic application, but my function needs to send the data as x-www-form-urlencoded, tried several different ways but still could not. public…