Posts by Guilherme • 147 points
30 posts
-
0
votes1
answer60
viewsQ: Calling filter method Status
I have this method, when choosing a country, search the states. filtrarEstado(pais : Pais) : void{ this.loading = true; this.estadoService.getEstadosPorPais(pais).subscribe( (data :any) => {…
-
0
votes1
answer108
views -
0
votes0
answers20
viewsQ: Disable/ Enable components when changing
I have this variable change Record : Boolean;. in this method ngOnInit(), I check if it’s a change or not ngOnInit() { this.empresa = new Empresa; if(this.routaAtual.snapshot.url.length > 1){ let…
-
1
votes0
answers135
viewsQ: Component matDatepicker
Thus the value coming from the database is populated in the component <input matInput disabled name="dataInicio" [(ngModel)]="empresa.dataInicio" placeholder="Data início de atividade do banco…
-
0
votes1
answer108
views -
0
votes2
answers471
viewsA: Redirect before logging into the system - Angular
I did so and so it resolved. Canactivateauthguard import { Injectable } from '@angular/core'; import { Router, CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';…
-
1
votes2
answers471
viewsQ: Redirect before logging into the system - Angular
I have a login screen, with the total "/Authentication/login". How to do at the angle when the user enters the system, it goes straight to this route ? After logging in if it enters this route, it…
-
0
votes1
answer1425
viewsA: Masks - angular 2
I did so: public cpfcnpjmask = function (rawValue) { var numbers = rawValue.match(/\d/g); var numberLength = 0; if (numbers) { numberLength = numbers.join('').length; } if (numberLength <= 11) {…
-
-2
votes1
answer1425
viewsQ: Masks - angular 2
I need to implement in a CNPJ or CPF mask field, that is, if it is above 14 characters changes the mask to CNPJ. Same idea for phone, that is, mobile and fixed. CNPJ, CPF, Phone, Mobile, single I’ve…
-
2
votes1
answer204
viewsQ: Menu and routes and subroutes
I have this file that mounts the menu. import { Injectable } from '@angular/core'; export interface BadgeItem { type: string; value: string; } export interface Saperator { name: string; type?:…
-
1
votes0
answers121
viewsQ: Admin Template Materialize
The company bought a template to implement a menu, but clicking the menu button is giving this error in the console: FullComponent.html:34 ERROR TypeError: Cannot read property 'toggle' of undefined…
-
1
votes1
answer136
viewsQ: Wildfly server
Standalone of the wildfly <interfaces> <interface name="management"> <inet-address value="${jboss.bind.address.management:127.0.0.1}"/> </interface> <interface…
-
0
votes1
answer28
viewsA: Angular and Spring system for type approval
I changed the html, this part of < base href="/"> for < base href="./">, and so it worked. But there is some other way that I do without having to change the html ? It has how to make a…
-
0
votes1
answer28
viewsQ: Angular and Spring system for type approval
We have a VM on Azure. I managed the homologation build and put it on the server. Generated the files and index.html like this <!doctype html> <html lang="en"> <head> <meta…
-
-1
votes1
answer84
viewsQ: Wildfly server memory error
I tried to import a 66 megas file, and gave this error in wildfly : Caused by: java.lang.Outofmemoryerror: Java heap space In addition to including this setting in spring. @Bean public…
-
0
votes0
answers161
viewsQ: Error in VSCODE console
I have this mistake in VSCODE. ERROR in src/app/paginas/arquivo/arquivo-form/arquivo-form.component.ts(93,20): error TS2339: Property 'total' does not exist on type 'HttpEvent<{}>'. Property…
-
0
votes1
answer88
viewsA: Error 415 - Upload files
I was able to modify the way to send to the server, so: constructor( private httpClient: HttpClient, private http: Http, private authenticationService: AuthenticationService ) {}…
-
0
votes1
answer88
viewsQ: Error 415 - Upload files
pom.xml <dependency> <groupId>commons-fileupload</groupId> <artifactId>commons-fileupload</artifactId> <version>1.3.3</version> </dependency> Angular,…
-
0
votes0
answers106
viewsQ: Error accessing controller - spring securiy
I’m finding this mistake strange. Class you are reporting on the console: package br.com.netsoft.configuracao.auth; import io.jsonwebtoken.ExpiredJwtException; import java.io.IOException; import…
-
0
votes1
answer80
viewsQ: Creating and using component at angular 2
I created this component to show success message or not. import { Component } from '@angular/core'; import { MatSnackBar } from '@angular/material'; @Component({ selector: 'app-snack-bar',…
-
1
votes0
answers61
viewsQ: Angular and server
I must have done something wrong. I created this class: package br.com.netsoft.configuracao.auth; import java.io.IOException; import javax.servlet.FilterChain; import javax.servlet.ServletException;…
-
1
votes1
answer349
viewsA: JWT token with spring, for user authentication
Solved. I did manage. Thus creating: private String token(UsuarioEntity usuario) { String token = Jwts.builder().setSubject(usuario.getLogin()).signWith(SignatureAlgorithm.HS512,…
-
3
votes1
answer349
viewsQ: JWT token with spring, for user authentication
When trying to validate this method: Jws<Claims> parseClaimsJws = setSigningKey.parseClaimsJws(token);, it shows this exception on the screen JWT signature does not match locally computed…
-
0
votes0
answers49
viewsQ: Error in Chrome console
In the Chrome browser console, I have these errors: I have to worry. Only in Chrome content-script.js:12 Unhandled rejection Error at child.onBeforeRender…
-
0
votes0
answers307
viewsQ: Angular 2 and material.angular.io
Example with the name "Table retrieving data through HTTP", https://material.angular.io/components/table/examples. But I switched to search the database. The information comes from the database.…
-
0
votes1
answer88
viewsA: <Md-dialog> - Angular
I got it this way: <md-dialog aria-label="Detalhe do bem" flex="90" style="height: 600px">
-
0
votes1
answer88
viewsQ: <Md-dialog> - Angular
I use this component to open modals. I use the flex parameter to set the width. How to set the height ? <md-dialog aria-label="Detalhe do bem" flex="90" >…
-
1
votes0
answers161
viewsQ: Angular error
Request URL:http://127.0.0.1:8080/itcd-intranet-ui Request Method:GET Status Code:404 Not Found Remote Address:127.0.0.1:8080 Referrer Policy:no-referrer-when-downgrade view source…
-
2
votes2
answers773
viewsQ: Ng-repeat with div
I have a list of information. I need you to show 4 records per line, I tried several ways, but I couldn’t. It shows all the records in one line. <div flex layout="row" flex="100"> <div…
-
-1
votes1
answer3136
viewsQ: An error occurred while performing resource injection on the managed bean paisControler
Trying to start a system page shows this error. I’ll put the codes: DAO package br.com.netsoft.desif.dao.endereco; import java.io.Serializable; import java.util.List; import…