Posts by Qattus • 49 points
9 posts
-
0
votes1
answer136
viewsQ: Communication between directives
Next guys, I have a directive in Angular as the code below: import {Directive, HostBinding, HostListener} from '@angular/core'; @Directive({ selector: '[borders]' }) export class BordersDirective {…
-
-1
votes1
answer33
viewsQ: Selecting information that repeats many times
I wonder if there is any way to select information that repeats many times. Example: I have an object array: array = [{fruta: maçã}, {fruta: maçã}, {fruta: banana}] Note that the apple fruit repeats…
-
-1
votes1
answer84
viewsQ: Error loading image from server
Hi, I’m trying to upload the image that’s on my server directly to the interface. The server is nodejs with express, already on the front end I’m using the angular Sanitizer. On the server I have:…
-
2
votes1
answer78
viewsQ: Is there anything that compares the type of the object?
I want to test the type of the object not its value, more or less this: component1: IndexComponent if(component1: IndexComponent) { dosomething(); }
-
0
votes2
answers1074
viewsA: Remove semicolon from a JS string
I found the solution simply dying to look finally found one that would replace: const v = ((value.replace(/\D/g, '') / 100).toFixed(2) + '').split('.'); const m =…
-
-2
votes2
answers1074
viewsQ: Remove semicolon from a JS string
Hi, I was wondering if there’s something wrong with that function that won’t let me remove the semicolon from the string. What happens is that I have an input that when receiving the entered value…
-
0
votes1
answer33
viewsA: Route guard with asynchronous event
I solved the error just using the resolve. More explanations at this link: https://www.youtube.com/watch?v=AEUSrpsAPtw…
-
0
votes1
answer33
viewsQ: Route guard with asynchronous event
I have a route guard that checks if the user is logged in from a token in the Torage locale that works very well. But he doesn’t expect any asynchronous events. I need to create a new route guard…
-
0
votes1
answer55
viewsQ: Subscribe to a JS object
I wonder if there is any way to subscribe to the content of an object. For example: I have two objects. object1 { name: ''; address = 'Rua Mario'; email: ''; } object 2 { name: 'Carlos'; email:…