Posts by Edward Ramos • 523 points
49 posts
-
0
votes1
answer106
viewsA: Ionic Directive for numerical masking is not accessed from other pages
I use the ngx-Mask in my designs, it’s quite easy to use. 1-Configure it in the app.module and then the component that will use it. 2- No input, typhoon mask='(00)00000-0000' And there you are! Any…
-
1
votes3
answers831
viewsA: SHA-1 with Typescript
An alternative is to install this npm: https://www.npmjs.com/package/sha1 After installing, go straight to the component (can do inside the same function) and insert two lines: var sha1 =…
-
0
votes1
answer2709
viewsA: Error running build p/ android - IONIC 3
I managed to make it work by adding the paths this way:…
-
1
votes1
answer490
viewsA: Failed to install Electron in windows 10
'Node' is not recognized as an internal command When you make that mistake, it’s usually PATH windows, which needs to add more these paths:…
-
1
votes1
answer57
viewsA: Data-Bind and Onclick on the same button
You can call the second function within the first function (I think this will solve your problem), if that’s it, try to do so: <asp:LinkButton ID="btnBuscar" runat="server"…
-
1
votes2
answers59
viewsA: Turn time into number
These commands will take the amount you want: var regraData = new Date(); var regraDia = new Date().getDate(); var regraMes = new Date().getMonth() + 1; var regraHora = new Date().getHours(); var…
-
1
votes1
answer36
viewsA: Postgre Insert null in char(3) does not work
Uf is receiving "Sao Paulo" that have 9 characters, whereas only supports 3 characters. In this case, you have to define whether "Sao Paulo" will be 'SP'(only the state acronym) or will have to…
-
4
votes1
answer155
viewsA: Remove empty spaces Laravel + webscraping
Try using this command: $string = preg_replace('/\s+/', '', $string);
-
-1
votes1
answer470
viewsA: Formgroup does not work on Ionic 4
I will post my code as it is working. If not, explain better where the error is. login.pagets. import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from…
ionicanswered Edward Ramos 523 -
0
votes1
answer420
viewsA: Name of input type radio with formControl
Look, the radio button needs to have a name equal in all radio Buttons so that only one of them is selectable. Then, try to use the nameinstead of ng-reflect-form-control-name. Example: <input…
-
-1
votes4
answers993
viewsA: How to pass/receive data to components via routing
Going through the date I haven’t learned yet, I know how to do it this way: { path: 'artigo/edit/:id', component: RhFormArtigoComponent}, { path: 'artigo/edit/:setor/:id', component:…
-
0
votes3
answers99
viewsA: How to calculate the Javascript input value and the result appear in the alert?
Try this test, and tell what happened on the console or on alert(). ... <input type="hide" id="valor_cidade"> ... function cidValor(valor){ $("#valor_cidade").val(valor); } function…
-
1
votes1
answer115
viewsA: How to recover a project using Angular 2 that was damaged with "npm update"
Boy... A lot has changed from version 2 to version 8 (currently), certain packages have changed their name or been replaced. In your case, I would create a new project, and would be part by part…
-
0
votes1
answer98
viewsA: Search results in Mysql database with Codeigniter
I use AJAX to call the controller functions from the view. But in your code, in Controller you’re calling $this->carrinho_model->getAtacadista() and in modal the function name is different…
-
0
votes1
answer176
viewsA: Routes Lazy loading not being loaded after login
If I understand your code correctly, the component remains to be loaded into the module. Take a look at this code to see if it helps you: App.routing import { NgModule } from '@angular/core'; import…
angularanswered Edward Ramos 523 -
0
votes1
answer167
viewsA: Error with http.post and http.get with Angular 2
The version I use is Angular 7, because it has different things, but I’ll leave my code for you to take a look and take a test. import { Injectable } from '@angular/core'; import { baseurl } from…
-
0
votes1
answer855
viewsQ: How to disable the right mouse button event in Angular 7?
I am trying to disable that menu that appears on the page when the user clicks with the right mouse button. At Angular, I can catch the click event using (click)="onRightClick($event), but I only…
-
0
votes1
answer239
viewsA: Angular 7 - Power Tooltip on prime-table buttons
I solved it like this, I created @Input for Tooltips, and it was like this: <prime-table [th]="th" *ngIf="perfis.length > 0" [td]="perfis" [btn_cadastra]="true" [ptooltip_cadastrar]="'Criar…
-
0
votes1
answer622
viewsQ: Primeng p-editor error in Angular 7
I followed the documentation as the site says: example p-editor. But he gives me the following mistake: ReferenceError: Quill is not defined at…
-
0
votes1
answer65
viewsA: How to access a property of the Event element in Javascript?
If it is an array: Event['fieldname'] If it is an object: Event.fieldName If it is an object array: Event[0]. fieldName
-
0
votes1
answer417
viewsA: Angular 7 - Remove/Update objects from a list and update in DB (Primeng - Picklist)
I decided as follows. I got the information from $Event, then Filtreed the information I needed and sent the backend to do the rest of the work. Inside the component is like this, two methods, one…
-
0
votes1
answer239
viewsQ: Angular 7 - Power Tooltip on prime-table buttons
I am using the prime-table, along with the tooltip, and would like the tooltip message to be customized for my system. Ex: The edit button will display the "Edit user" message in the user table and…
-
1
votes1
answer14955
viewsQ: Angular 7 - How to make "Else if" with "*ngif"?
I am trying to make an "Else if", to present the items of the category chosen by the user through a radio button. Only I only have "if" and "Else" to present on ng-template. I set up a sequence of…
-
0
votes3
answers17275
viewsA: Error #1062 - Duplicate entry '1' for key 'PRIMARY'
In the sub_id, the field cannot be set to 0, if not the DB gets lost in the count. Switch to any other value that DB returns to normal.
-
1
votes1
answer3139
viewsQ: Angular 7 - Input validation in a dynamic form
I made a form where the fields (input) appear according to the category to be created. The category is chosen when the user clicks on it, opening a new pro form tab. In the form, you have fields…
-
0
votes1
answer874
viewsQ: Angular 7 - Reload datatables after deleting an item from the table
The datatable presents an error after I delete an item from the table, the message includes a site that eh this: Cannot reinitialise Datatable I thought of some way to "go back and forth" the page…
-
0
votes6
answers674
viewsA: Angular 6: Selected does not work with [(ngModel)] and (ngSubmit)="onsubmit()
In the example I’ll leave, see the tag that has [attr.disabled], it will have the default value for a select, only that the value comes from Component.ts. <div class="form-row"> <div…
-
0
votes6
answers674
viewsA: Angular 6: Selected does not work with [(ngModel)] and (ngSubmit)="onsubmit()
I use the [checked] inside the tag to leave it preselected (this is for radio button). Example: <label for="permissoes">Funcionalidades & Permissões</label> <div class="row">…
-
2
votes3
answers180
viewsQ: Mysql - Create an alias by concatenating multiple fields
Is it possible to create an alias by concatenating other fields? Ex: SELECT u.nome, u.sobrenome AS nome_completo FROM usuarios u In the example, I want to concatenate u name. and u surname. and…
-
0
votes2
answers832
viewsA: Disable Initial validation of the Angular form
Complementing Herbert Junior’s response, I’ll leave an example of how it looks in HTML: <a (click)="goBack()" class="btn btn-warning btn-md m-3"> <span class="glyphicon…
-
0
votes2
answers119
viewsA: ngOnInit does not save value of the variable returned by a function
I use formBuilder to take the values and work on a form. import { Component, OnInit, ElementRef } from '@angular/core'; import { ActivatedRoute, Router } from "@angular/router"; import {…
angularanswered Edward Ramos 523 -
1
votes2
answers917
viewsQ: Angular 7 - Add a datatables to the component
I am using this datatable: Angular Datatables I followed the stripe of the examples cited on the site, but the datatable does not appear (does not load), only the html table appears on the screen.…
-
0
votes1
answer782
viewsQ: Angular 7 - Open imported component in another module
I’m having a question of how to call a component that is imported into another module. The situation is as follows: I have the profile component, where I list the company profiles. Each profile has…
-
1
votes1
answer417
viewsQ: Angular 7 - Remove/Update objects from a list and update in DB (Primeng - Picklist)
I’m using the Primeng picklist, just like this tutorial: picklist tutorial I am using the event onMoveToTarget and onMoveToSource to get the object information: <p-pickList…
-
0
votes1
answer3867
viewsA: How to redirect to another page using angular 7
I haven’t seen you use the routerLink command inside the "a". If that is the problem, there is a tutorial here that clarifies this part: Lazy Loading - Router Link In a system I made, the code went…
-
0
votes1
answer89
viewsQ: Mysql/PHP - Compare two lists and filter information
This is a matter of ENEM (jokes aside, let’s doubt). The answer may be in Mysql or in PHP. I need to do a search where I list all permissions that the user does not have. For this I have the…
-
1
votes1
answer314
viewsQ: Angular 7 - Compare Lists
I have two lists in my component. listPermissoesOfUser: UsuarioPermissoes[]; listAnotherPermissoes: UsuarioPermissoes[]; And when I upload the page, I display them in a primeNG picklist (Two…
-
0
votes4
answers6169
viewsA: Angular js Array within another array
As mentioned above, use one repeat inside another. Or you can also access directly as follows: item[0][0] //Acessar o campo "0" do array "0"…
-
0
votes1
answer154
viewsQ: Primeng - Search multiple fields in Picklist
I’m using Picklist on an Angular 7 app. In Picklist, I need to search more than one field displayed in the container. On their website (Primeng) there is an example: Picklisttutorial On the tag,…
-
0
votes1
answer259
viewsA: Fade in / fade out effect at Angular 7
I use an ngTemplate to open a modal inside the component, so the fade in/out effect works, if I open the modal in another component, the effect does not happen. I don’t know if my code will solve…
angularanswered Edward Ramos 523 -
1
votes1
answer1220
viewsQ: Angular 7 - Change the checkbox color after checking as checked
I have the following checkbox list: I’m wearing Bootstrap 4 and Angular 7. I would like to know a way that when the checkbox is clicked, its line changes color, so it is easier for the user to know…
-
0
votes2
answers1130
viewsA: Angular 7 - Creating a Stepper/Wizard
I found a library called Bs-Stepper, which uses Bootstrap 4. I installed it in the project as it says in the documentation: Bs-Stepper installation There is a functional example in this link:…
-
-2
votes2
answers1130
viewsQ: Angular 7 - Creating a Stepper/Wizard
I’m doing a sign-up page, which is working. I wanted to change her to a Stepper/Wizard, but I’m using Angular 7 with Bootstrap 4. Has anyone ever done one or has an angle example?
-
0
votes1
answer1877
viewsA: Change input value after selecting an option at Angular 7
I decided as follows. Inside the component, I took the tag information inside Formbuilder, and I put that information inside a variable getPerfilOfusuario() { const id_usuario =…
-
0
votes2
answers216
viewsQ: Join and merge activity diagram
What’s the difference between Join and Merge in the Activity Diagram? I would like a simple example of each of them to better understand.
-
0
votes1
answer1877
viewsQ: Change input value after selecting an option at Angular 7
Inside my form, there is a select, where I choose an option, in this case I choose a user. <div class="form-row"> <div class="form-group col-md-5"> <label for="usuario">ID…
-
0
votes2
answers102
viewsA: Error reloading a page with Angular
The two most common ways to solve yourself is: - Placing the Service on providers. - Import component into module and routing.
angularanswered Edward Ramos 523 -
0
votes2
answers264
viewsQ: Remove First Name and Last Name from Full Name
I am using the SUBSTRING_INDEX command to get the first name and last name of a table field "Names". SELECT SUBSTRING_INDEX(nome_completo, ' ', 1) AS primeiro_nome, SUBSTRING_INDEX(nome_completo, '…
-
0
votes3
answers8934
viewsA: How to extract and list values from a multidimensional array?
I got the notes from the comic book $info = ldap_get_entries($connect, $search); After I made a foreach to take the hints I wanted and put in another array: $empresaSemDescricao = array( 'resultado'…