Posts by wladyband • 4,694 points
426 posts
-
0
votes1
answer2884
viewsQ: How to do Spring Boot unit test insert data into Database?
I created a simple system that is working perfectly, but I need to implement a unit test in Spring Boot, which happens that when I perform the test or I cannot enter the data in the database or…
-
1
votes1
answer227
viewsQ: How to create a business rule by JPA?
I need to implement a business rule that ensures that the same employee represented by the table Employee cannot be added more than once to the same project represented by the table Project. Let me…
-
2
votes1
answer717
viewsQ: How effective is the message of success in Spring Boot?
I need to implement a success message that is shown via json, by when my message is returning this way below; I don’t know how to implement that message, I tried that way; @PostMapping public…
spring-bootasked wladyband 4,694 -
0
votes1
answer599
viewsA: How to configure Node Express in the Angular 6 project?
I managed by making the following changes; I installed the express lib in the Angular project and put the server.js file this way below; const express = require('express'); path = require('path');…
-
-1
votes1
answer599
viewsQ: How to configure Node Express in the Angular 6 project?
I am to send a simple project that is working perfectly on my local computer, and I need to send it to the Heroku server, for this it is necessary to configure a file that will simulate Node Express…
-
2
votes4
answers9163
viewsQ: How to refresh the screen in Angular?
Observe the code below; import { Location } from '@angular/common'; @Component({ selector: 'app-node-paginate', templateUrl: './node-paginate.component.html', styleUrls:…
-
0
votes1
answer1353
viewsQ: How to import css in Angular 6?
I noticed that from Angular version 4.3 to Angular 6 they removed the file .angular-cli.json, because of this I am including in the main file of the project the index.html, but the Font-Awesome…
-
0
votes0
answers147
viewsQ: Navigability button does not work in Angular
Take a good look at the image below; This test just above was done in a file HTML with CSS, and it’s working perfectly, but I did the same test in an Angular project with the same code and it didn’t…
-
0
votes1
answer634
viewsQ: Why does the app.component.css file not work in Angular?
When we execute in Angular the command ng g c page --spec=false it creates a component composed of four files, an HTML file, a module file, a CSS file and a file TS as shown in the figure below, in…
-
0
votes2
answers74
viewsQ: http is not recognized in the Node Express project
My project is giving this error message; Why is my project not recognizing my http? I’m new, and I’m still learning to code in Express. This is my package.json; { "name": "registre", "version":…
-
0
votes0
answers20
viewsQ: Difficulty finding list in Angular?
Take a good look at the image below; In my class of services it was like this; pesquisar(): Promise<any> { return this._http.get(`${this.url}/menus` ) .toPromise() .then(response => {…
-
1
votes1
answer500
viewsQ: The Primeng Dataview buttons don’t look like
See the image below with the arrow indicating which is the button; That button’s not showing, it’s supposed to be like this; What is going on? No error message appears anywhere. This is a Primeng…
-
1
votes1
answer674
viewsQ: Primeng dropdown does not load
I think my problem is the HTML page in my Angula project, I can’t help but point out that I’m using the Primeng lib. See the figure below, it is perfectly loading my list; But I still can’t load my…
-
1
votes0
answers677
viewsQ: Error: Uncaught (in Promise): Typeerror: Cannot read Property 'name' of Undefined
You are generating this error by entering the page. Error: Uncaught (in Promise): Typeerror: Cannot read Property 'name' of Undefined Typeerror: Cannot read Property 'name' of Undefined at…
-
0
votes0
answers250
viewsQ: ERROR in Metadata version Mismatch for module in Angular
I’m making that mistake; ERROR in Metadata version Mismatch for module C:/Rei das cochinhas/API/restaurantui/node_modules/primeng/Components/inputtext/inputtext.d.ts, found version 4, expected 3,…
-
2
votes1
answer2626
viewsQ: How to get a URL parameter in Express?
My URL is coming this way http://localhost:3000/menus/5.5 and it’s bringing all the 5.5 records, but I wish the URL could look like this http://localhost:3000/menus?price=5.5 to have the same…
-
0
votes1
answer93
viewsQ: Filter issues in lib API QUERY PARAMS
I am using this lib to apply filters api-query-params I need to perform the filter for this entity; 'use strict' const mongoose = require('mongoose'); const Schema = mongoose.Schema; const schema =…
-
1
votes3
answers864
viewsQ: Font Awesome icons do not take Primeng
I have the lib of Font Awesome installed and configured in my project, and I have the lib of Primeng also installed, but the icones of Font Awesome is not getting the Primeng Datatable, is something…
-
0
votes0
answers54
viewsQ: Difficult to implement paging at Angular 2+
You can see that back-end paging is working. My goal is to achieve returns the first three records of the first tab in Angular as shown in Postman, if I manage to complete this first step of…
-
0
votes1
answer1120
viewsQ: How to configure paging method in Node Express?
I have my paging method working perfectly with this URL: http://localhost:3000/menuspage See the code below; exports.list_all_dataProviders = async (req, res) => { const { filter, skip, limit,…
-
0
votes1
answer890
viewsQ: How to implement Mongoose-paginate in Node Express?
I am trying to implement in my project Node Express paging in a menu list, and I found this documentation right below; MONGOOSE-PAGINATE According to the instructions I first installed lib with that…
-
0
votes0
answers616
viewsQ: How to show image at 2+ angle?
This code is working perfectly on another; <div class="col-sm-12 col-xs-12" *ngIf="is_edit && restaurant.image"> <div class="image_for_edit"> <img src="{{url +…
-
-1
votes1
answer32
viewsQ: Problem implementing update method in Angular 2+
I’m using Mongodb’s data bank. I believe that most understand that to update a record it is of utmost importance to take the key identifier, ie the _id, I am managed to get the registry identifier…
-
0
votes1
answer44
viewsQ: Angular list implementation with problem
I don’t understand what’s wrong with my code, the code is correct, even so I can’t list the data from my Mongodb database. This is my HTML <div class="col-lg-12"> <h3>{{ title…
-
1
votes0
answers101
viewsQ: Referenceerror: EXIF is not defined from ng2-img-max?
I installed ng2-img-max in order to resize images. I want each image sent to be resized to a predefined width and length. I see that most people use ng2-img-max when developing with 2/4 angular. I…
-
0
votes1
answer71
viewsQ: Problems implementing ng2-img-max lib!
I installed ng2-img-max in order to resize images. I want each image sent to be resized to a predefined width and length. I see that most people use ng2-img-max when developing with angular 2/4. I…
-
0
votes0
answers32
viewsQ: Image upload problem in nodejs
I am performing a test to implement an image upload and created the following code in the back end in Node js. function uploadImagem (req, res) { var restauranteId = req.params.id; var file_name =…
-
0
votes0
answers151
viewsQ: How to use ngIf to hide Links?
I’ll tell you directly what I need, then I’ll go into my problem further. I need to hide this link from edit, how can I do this with ngIF? <div class="col-lg-4"> <h1>{{ title…
-
0
votes1
answer108
viewsQ: How to configure routes in Angular
I am having difficulty configuring daughter routes in my project. I even set up some routes in my Angular project as you can see below, these routes are working perfectly; const ROUTES: Routes = [ {…
-
0
votes2
answers57
viewsA: Problem working with Bootstrap Resolution
Why am I using the admin-Te had to take the class col-lg-12 was like this <!--INICIO DO CONTEUDO--> <section class="content-header"> <h1>Lista de Restaurantes</h1>…
-
0
votes2
answers57
viewsQ: Problem working with Bootstrap Resolution
Look at the picture; You can see that the resolution is the way I want it is small but it bursts when it gets a higher resolution. How could I fix this? here is the HTML code <!--INICIO DO…
-
1
votes1
answer32
viewsQ: Unreachable code Detected at angular
Watch this code snippet; this.notificationService.notify(`cadastro feito com sucesso`) I created a project in Angular, if it is an Ecommerce system, every time I select a product it can notify the…
-
0
votes1
answer62
viewsQ: Can’t import the Observable package from the timer feature?
Watch this tutorial carefully: Importing RXJS Observable functions in Angular 5 I’m having difficulty performing the Observable Resource Import timer, I’ve tried to write the path in several ways…
-
2
votes1
answer410
views -
-1
votes1
answer471
viewsQ: Problems connecting Node.JS Express in Mysql
I know my project is correct that there is nothing wrong, I think the problem is my newly installed bank, how can I solve this problem? Unhandled rejection SequelizeConnectionError: Client does not…
-
0
votes0
answers79
viewsQ: How to use save on Node js?
I’m with a study project using Node JS with Mongodb and I’m having difficulty saving a record in the database, I’m using the method this way. function postRestaurant (req, res) { var restaurants =…
-
0
votes1
answer42
viewsQ: Node Express get problem
I’m trying to list the menu record in my Mongodb database and am not succeeding, but when I list the Restaurant records I succeed, all two collections are in the same database, why is this…
-
1
votes1
answer34
viewsQ: How do you declare date on Node Express?
I’m with the following entity; 'use strict' var mongoose = require('mongoose'); var Schema = mongoose.Schema; var ReviewsSchema = Schema({ name: String, date: String, rating: String, comments:…
-
0
votes2
answers428
viewsQ: Load log by id in Angular
This below is a brief explanation. By clicking the register on browser screen I can not load the records according to the ID. This below is a detailed application; View the gif file You can notice…
-
0
votes2
answers123
viewsQ: The Observable is not accepting Catch
Note the figure below; Why is the Observable not accepting the catch?…
-
0
votes3
answers3288
viewsA: error message Cannot find a differ supporting Object '[Object Object]' of type 'Object'. Ngfor only
It worked by making that change in the code; restaurants(): Observable<Restaurant[]> { return this.http.get(`${this.url}/restaurants`) .map(response => response.json().restaurants) }…
-
0
votes3
answers3288
viewsQ: error message Cannot find a differ supporting Object '[Object Object]' of type 'Object'. Ngfor only
I’m getting this error message; This indicating that the error is here; <!-- INíCIO do CONTEÚDO --> <section class="content-header"> <h1> Todos os Restaurantes </h1>…
-
2
votes3
answers476
viewsQ: Observable returning Undefined
I am trying to load a list on screen in my browser using Observable, however I am not succeeding, this is record that exists in my url; This is the class of services import { Http } from…
-
0
votes0
answers210
viewsQ: Error while using the [routerLink] directive
Hello, I’m having problems when I try to add directive Routerlink. Whenever I add it I’m getting the error below: compiler.js:486 Uncaught Error: Template parse errors: Can't bind to 'routerLink'…
-
1
votes2
answers1115
viewsQ: How to work with Angular ngIF with screen resolution?
See below how the web page looks; Now look at the screen with resolution below 992px This happens because of the css column I would like to remove this column when it reaches less than 992px with…
-
3
votes1
answer93
viewsQ: How to work with CSS visibility?
Greeting, What I need to do is make an image invisible when the screen resolution reaches 576px, but I’m not succeeding, I’m doing so; HTML <div class="col-sm-2 topo_branco animated…
-
0
votes0
answers106
viewsQ: How to implement Angular ng2-img-max?
My problem is this; I am able to save and display the images using my API, but at the time of displaying the images on screen it gets burst, IE, my images are 4800 x 3255 resolution, It is a very…
-
1
votes1
answer238
viewsQ: How to implement Primeng Photo Gallery?
Personal greeting, I’m trying to implement an image gallery as you can see in the Primeng demo template below; Gallery However I am having difficulty due to lack of experience, please my goal and…
-
0
votes1
answer38
viewsQ: Problem implementing Angular editing
Look at the image below; When clicking edit in addition to being directed to the editing page was to load the form, but the form is not being loaded, and see how it is. It was supposed to look like…
-
0
votes2
answers3335
viewsQ: How to disable the button in Angular?
Take a good look at the form <form #registerForm="ngForm" (ngSubmit)="onSubmit(registerForm)" class="col-lg-10" > <p> <label >Nome</label> <input type="text" name="name"…