Posts by Guilherme Nunes • 727 points
62 posts
-
1
votes4
answers241
viewsQ: Filter list of python objects
Hello, I’m new to Python and I’m having doubts to filter an object from a list. I have the following list: [{ ID: 1, Name: 'Teste 1' }, { ID: 2, Name: 'Teste 2' }] And I am wanting to realize a…
-
1
votes2
answers847
viewsQ: How many days a week do you have in a month?
Hello, good night! I did a lot of research on the Internet and found nothing concerning this doubt! I would like to get how many days of the week there are within a month using javascript! Example:…
-
2
votes1
answer231
viewsQ: Nginx with api Node
I’ve had a problem for a while and I can’t fix it. The problem is this: I have a server that has an api running PM2 on it at port 3000. I installed NGINX and am trying to link the route of my domain…
-
5
votes1
answer40
viewsQ: How to scroll with 3 Divs
I’m facing a scroll problem .div-pai { margin: 30px; background-color: red; width: 300px; height: 300px; padding: 3px; overflow: auto; } .linha { padding: 5px; background-color: yellow; display:…
-
0
votes1
answer43
viewsA: Ngix with multiple angular designs
In case someone is having the same problem! I solved my problem by removing the index.html file from the angular project, the following tag! How was: <base href="/"> As it turned out: <base…
-
-1
votes1
answer43
viewsQ: Ngix with multiple angular designs
Hello, I’m starting now to use the NGINX and I’ve already had a problem! I am using an ubundo server to run 3 angular frontends, and then I am using NGINX to resect these projects The setup I’m…
-
-1
votes1
answer44
viewsQ: Cancel subscribe
I’m performing a call to API that returns me a list of any obj when I click on a button. That is if I click twice in sequence, the API returns me the same list in sequence as well. My question is,…
-
-1
votes1
answer20
viewsQ: Nodejs + Moongose + Typescript
I’m new to development with Nodejs and I’m having a problem. I have an Array of an obj whose Id is type Objectid from Mongo. I’m trying to make a find inside this Array by searching for that Id. And…
-
0
votes2
answers175
viewsA: Router Link with variables
I learned it personally.... First and most important, you must import the angular module: 'Routermodule', I know it’s basic, but it’s good to make it 100% clear. After that you must pass your…
-
-1
votes2
answers175
viewsQ: Router Link with variables
again I have brought a doubt about Angular!! I am angular developer 1,5 years and to date I have not found a way to use Routerlink passing the URL through a variable. The ways I tried were all…
-
2
votes2
answers51
viewsQ: Lazy-Loaded and angular charging shapes
Hello good afternoon everyone... I’ve been an angular developer for a while, and I’ve come across two ways to make the famous Lazy-Loaded, which are: { path: 'rota', loadChildren:…
-
0
votes1
answer171
viewsQ: Regex angular ngModel
Hello, I have a problem with regex and angular. I have an input that uses ngModel, and I need to use a regex on it to prevent the user from initially entering a number, that is, the first input must…
-
0
votes2
answers126
viewsA: Googlemaps + c#
The problem is that in my company the proxy was blocking calls made by applications . NET! I did the test using another network and worked normally. Thank you all for helping me..
-
1
votes2
answers126
viewsQ: Googlemaps + c#
I’m trying to accomplish a request in C# using the package RestSharp, for geolocation information by passing the zip code. The request this way was left:. RestClient client = new…
-
0
votes1
answer41
viewsQ: Slimselect + Angular 6
Hi, this is the first time I use Slimselect and I’m having trouble making it work. I created a test-only Component called 'Addaccount' and in its 'ngOnInit()' method, I put what the Slimselect…
-
1
votes2
answers48
viewsQ: Entity framework 6.2.0 + Find
Hello, I’m using a search method with Entity framework and oracle, and found a problem with dates. In my search I use the following logic: Find(x => x.Data_Intencao >= Periodo.Date, c =>…
-
2
votes1
answer218
viewsQ: ngx-bootstrap + angular 6 + datepicker
Hello, I am using ngx-bootstrap datepicker for the first time and am encountering some difficulties. One of them is that when selecting the desired date, my input is in the exact format I need, as…
-
-2
votes1
answer147
viewsQ: Date formats API + C#
I developed the system in layers, and I have 2 layers, where layer number 1 is my API and number 2 is where I keep my classes. In one of the classes I have a field of type DateTime. I created a…
-
-1
votes1
answer39
viewsQ: Procedures Mysql
Hi, I’m new to procedures and I have a question I couldn’t find on the internet. I need to create a procedure to include 2 tables: "User", "Supplier". The provider has a user FK, that is, in this…
-
0
votes1
answer181
viewsA: Multiple Dependent Requests at Angular
It is possible to perform this process using the switchmap, in the first calls and in the last use the Subscrible(); Ex: Chamadadaapi1(). switchmap(res => Chamadadaapi2()). subscrible();…
-
0
votes1
answer379
viewsQ: Mobile Numeric Angular Keyboard
Hello, I’m developing an angular form that will be used both on desktop and mobile. However, I would like in mobile the numeric fields as CPF, Phone, Zip code, present only the numeric keyboard and…
-
0
votes1
answer266
viewsQ: Modal in separate Component
Hello, I’m new in Bootstrap with angular, and would like to know if there is a way to create a modal in one Component and call it in another, for example: Component-parent Component-modal then the…
-
0
votes1
answer83
viewsA: Refresh with angular + IIS
I had to install this software on the server: https://www.iis.net/downloads/microsoft/url-rewrite After installation, and with the same Webconfig described in the question, refresh worked.…
-
0
votes1
answer83
viewsQ: Refresh with angular + IIS
I published an angular application on IIS and at first my application works normally, but when I refresh the page, I get a Not Found error. I looked at several websites and saw that it was necessary…
-
0
votes1
answer703
viewsQ: Daughter Routes, Angular 5
I have a Component, where it receives only one parameter in its route, this way below: {path: ':modelo', component: BaseNumerica, This Commission, in turn, has 3 daughter routes, described as…
-
0
votes1
answer241
viewsQ: Daughter routes at angular4
Hello, I’m encountering problems with my daughter routes. Just follow my lead: export const ROUTES: Routes = [ { path: '', redirectTo: 'Login', pathMatch: 'full' }, { path: 'Login', component: Login…
-
1
votes2
answers123
viewsA: The Observable is not accepting Catch
To use the 'Catch' operator, you need to import it from the rxjs library in this way: import 'rxjs/add/operator/catch'; So you can use it.
angularanswered Guilherme Nunes 727 -
0
votes1
answer653
viewsA: Deploy at angular with IIS server
It was missing to implement the folder name of the repository of the files, IE, the folder where the files are, tag getting like this: <base href="/TestDrive"> <head> <meta…
-
1
votes1
answer653
viewsQ: Deploy at angular with IIS server
Hello, I published an angular application on an IIS server, and when trying to access the URL defined on the server I get the following error: Error shown: "Cannot match any Routes. URL Segment:…
-
1
votes1
answer181
viewsQ: Multiple Dependent Requests at Angular
Hello, I’m doing a process at the angular, in the 'ngOnInit()' method, where I need to perform 3 HTTP methods, which are asynchronous. one depends on the other’s answer. for example: 1° call: get a…
-
2
votes1
answer411
viewsQ: POST method in Angular
I have a simple Angular application and need to make a call to my API to get one token. But I am facing difficulties. I will try to explain a little about my flow. I created a service class where I…
-
2
votes3
answers5520
viewsA: How to install Jquery in Angular?
Try it that way: npm install jquery --save
-
0
votes1
answer681
viewsQ: Script file on an angular Component
Hello, I have an Angular System that requires a specific script! This Component is not started on the first screen of my application, so I cannot put my script file in the Bundler, because by the…
-
2
votes2
answers4395
viewsA: Post com x-www-form-urlencoded no Angular
It seems that Body has to be in the string type and not as an object. In this way: let grant_type = 'password'; let username = 'varejo_user'; let password = 'w6h5xgtl'; let body =…
-
4
votes2
answers4395
viewsQ: Post com x-www-form-urlencoded no Angular
Hello, I have a POST request that is content-type: x-www-form-urlencoded. I need to pass some parameters on my Body, this way: I’m doing this way below to add my parameters on the request body:…
-
1
votes1
answer73
viewsQ: Get problem using google’s Angular API
I have an angled application that should search the Google API a long and lat. I created this method below to configure my call HTTP.GET(): ObterGeolocalizacao(): Observable<any> { const cep =…
-
-1
votes3
answers51
viewsQ: If logic with bool type and Object type
Hello, I’m cracking my head on this logic and I can’t seem to solve it; I have that code: for(let i = 0; i < mensagemDeErroDoInput.length; i++) { if(statusInput[mensagemDeErroDoInput[i].nome] ===…
-
0
votes1
answer464
viewsQ: Angular Scripts
Hello, I have an angular application where I am using jquery scripts to implement a datapiker and a timepiker, these presented below: I have a separate script for their startup, presented below:…
-
0
votes1
answer53
viewsQ: Reactiveforms Angular
Hello, I am trying to create a reusable form Component using Reactiveforms. Like when I want to use a form, I will just pass an array of my inputs from that form. But I’m not sure if it’s really…
-
3
votes3
answers900
viewsQ: how to find a string for json
I have a string in json format. In this way: {"IdLead":4186960,"Concessionaria":"Mila - Centro","DadosQualificacao":{"IdEvento":79654,"Qualificacao":1,"Motivo":6,"DescricaoMotivo":"motivo…
-
0
votes1
answer552
viewsA: EF Core 2 + Relationships between tables
I found a site where details all kinds of relationships A P/ a: https://www.learnentityframeworkcore.com/configuration/one-to-one-relationship-configuration A P/ many:…
-
0
votes1
answer552
viewsQ: EF Core 2 + Relationships between tables
Hello, I am starting a project, and I started using for the first time the new EF Core, for the sake of performance, but still have some things that I did not find on the internet that I would like…
-
0
votes1
answer77
viewsQ: Oauth with Dependency Injection
Hello, I’m starting my studies with Oauth, and right away I came across a problem. I created the famous 'Startup' class, and in it I call my predecessor as follows: public partial class Startup {…
-
1
votes1
answer216
viewsQ: DDD + Entityframework + Migrations + SQL Server
Hello, I have a Solution that I am implementing the DDD architecture with Entityframework, Migrations and SQL Server! However I am not able to connect to my local database when performing the…
-
0
votes1
answer50
viewsQ: Doubts with post method at the angular
Hello, I’m trying to make a POST method that returns me an object 'User'. In my Backend I have the following code: //Add um Usuarios public Usuarios Post([FromBody]Usuarios usuario) { return…
-
2
votes1
answer501
viewsQ: Entityframework + Sql Server + ASP.NET MVC
Hello, I have an ASP.NET MVC application that is using the ORM Entityframework to communicate with an SQL Server database! I currently switched computers and had to install everything again, Visual…
-
5
votes1
answer497
viewsQ: Where and how to save the API authentication token?
Hello, I’m with an angular application, which will consume a API. For that to happen, I must send one POST to another API, which serves only to generate a token that I will pass on all other…
-
0
votes2
answers552
viewsA: Custom input component
Assign formControlName in each input, which was being passed only in the model and not applied in the Input. The input was as follows... <input *ngIf='input.control == "input"'…
-
2
votes2
answers552
viewsQ: Custom input component
Hello, I have a form 'Reactive Forms' where it has several fields, (several inputs), so I decided to create a Component and run an ngFor on it to reduce the number of lines... Component html <div…
-
0
votes1
answer901
viewsQ: Boolean in the Angular
I have a class in Angular user call that gets 2 Boolean fields export class UsuariosModel { UsuarioId: Number; Nome: string; Sobrenome: string; Email: string; Senha: string; Corretor: boolean;…