Posts by Paulo GR • 74 points
8 posts
-
1
votes1
answer207
viewsA: Problems with JWT token
The JWT token spec perfectly predicts this case. Only validate whether or not the token is a huge security breach and should be completely avoided. A JWT token is an encrypted string that contains…
-
0
votes2
answers356
viewsA: Angular 5 + Ionic 3: I can’t send headers in API requests
Even using the append from Httpheaders it returns a copy that must be used. For example const headers = new HttpHeaders(); headers = headers.append('Content-Type', 'application/json'); Now yes the…
-
0
votes2
answers707
viewsA: Exchange value of a variable of another Angular component
To share variables between components Angular recommends the use of services. Service are singletons, that is, only one instance exists during the application lifecycle and should be used to…
-
1
votes1
answer685
viewsA: Example of 5+ angled responsive menu
Good morning, you can use the Angular Material that the official Angular library for screen components. In it among several components, there is the component mat-menu which is just a dropdown style…
-
0
votes1
answer48
viewsA: Angular Treatment of JSON
Doesn’t need any treatment. Javascript objects are treated as objects and the return json of your http service call is automatically transformed into a ready-to-use, native javascript object. I hope…
-
1
votes1
answer3027
viewsA: How to add localstorage in Typescript (Angular 6)
In Brower, among other modes of Storage there is the localstorage that can be accessed via window.localstorage For example within the function that showed would just call the function…
-
-1
votes2
answers378
viewsA: Why is it necessary to raise ng in 0.0.0.0?
Using --host 0.0.0.0 you are freeing up external access to the Angular development server. By default the server goes up as a host localhost What would prevent access to the angular server from…
-
3
votes1
answer264
viewsA: How to use Trackby in ngFor in Angular?
Passing a function to trackBy is enough. What you are doing is informing Angular of a unique Id for each element rendering its array, so adding or removing some element will not render the complete…