Posts by Marcus Hert da Coregio • 399 points
14 posts
-
2
votes1
answer4714
viewsQ: How do I calculate Widgets size for different resolutions?
For example, I have the following SizedBox: SizedBox( width: 40, height: 40 ) The value 40 is a fixed size defined by the prototype in baseline resolution (1x). I want these values updated for when…
flutterasked Marcus Hert da Coregio 399 -
-1
votes6
answers11997
viewsA: Current date Angular 2
It seems like you want to compare the date without the time, so you can do something like. let now = new Date(); if (now.toLocaleDateString() > dataComparacao.toLocaleDateString()) { alert('Data…
-
2
votes2
answers349
viewsA: How to declare a javascript array that will receive a JSON array
export interface Pergunta { id: number; titulo: string; opcoes: Opcao[]; } export interface Opcao { description: string; } This would be the most correct way to receive your data…
-
0
votes3
answers1950
viewsA: Error when compiling Angular 5 project "is Missing from the Typescript Compilation."
Go to your file tsconfig.json and add the following property within the property "compilerOptions": "paths": { "@app/*": ["app/*"] } After that, on your Component on the line where you do the import…
-
1
votes1
answer377
viewsA: How to organize my models in an Angular Cli project?
All your application code must be inside the folder src and their projects in app. What I do in my projects is usually create within src the following structure: src /app /shared/models And in that…
-
2
votes1
answer109
viewsA: Pass function by two way data bind
You can do something like this: inside your Component-btns you will define some Outputs @Component({ selector: 'component-btns', templateUrl: 'component-btns.component.html' }) export class…
-
2
votes1
answer41
viewsA: '_$visited' property in Javascript object at the return of Obervable’s map() function
This property is added by Primeng to perform some library controls. Theoretically it should not influence the sending of requests to your backend. But if the backend is releasing exceptions saying…
-
2
votes2
answers67
viewsA: Angular: Controller does not find Model
It may be that your variable Insidetv has not been instantiated before creating your controller. Try to leave javascript files always in upload order. But according to the angular styleguide on the…
-
1
votes1
answer3872
viewsA: Importing an existing project with angular-cli
Basically you must have the angular-cli installed and, in the project root folder (usually src) you should open a command prompt and run the command npm install that will download all the…
-
2
votes1
answer682
viewsA: Error No value specified for Parameter 4
In his method insertUsuario you are waiting 7 parameters in the query, but you are not sending them in your PreparedStatement: Your code PreparedStatement statement =…
-
2
votes3
answers467
viewsA: How to get an advanced "for" score?
Complementing what @Maniero said, even if you want to get the index, you can do int index = componentes.indexOf(comp); This way you get the content of your element. However, if I am not mistaken, it…
-
0
votes1
answer721
viewsA: Singleton - What is your function and definition?
This pattern allows you to create a unique object for your class within your entire application. For example, you use the class Calendar in various places of your application, accessing your…
-
3
votes1
answer52
viewsA: Error of Circularreferenceexception
Their classes ResultRow and ResultCol have circular reference, for example: private ResultRow row; //classe ResultCol private List<ResultCol> columns; //classe ResultRow Probably what is…
javaanswered Marcus Hert da Coregio 399 -
1
votes1
answer194
viewsA: Receive jwt in Java functions
An authentication filter needs to be created. This filter will be called every time a request arrives in your backend. @Protected @Provider @Priority(Priorities.AUTHENTICATION) public class…