Posts by Henrique Assunção • 81 points
5 posts
-
1
votes1
answer70
viewsA: Angular Service using third-party Packages
Since the API is not part of Angular you need to import everything with * and associate directly to a variable at import time. You also don’t need to put inside the constructor since it doesn’t have…
-
1
votes1
answer2201
viewsA: Remove edge that appears in browser Chrome and Firefox
The class .btn when you have the :focus together ends up adding a box-shadow generating the appearance of an edge, you need to add in your class . btn:Focus the box-shadow: None ! Important to…
-
2
votes2
answers155
viewsA: Google Chrome inserting datepicker into inputs
Actually it is correct only in Chrome, firefox does not support the input="date" and uses the fallback of input="text", if you do not want datepicker, use datepicker input="text" even…
-
1
votes1
answer1602
viewsA: List Json Data with Angular 2
Follows a plunker I created as an example: https://plnkr.co/edit/uXAKd17lCOdxBzRG6CVs?p=preview You need in the component to enter the service created as a previous import {PlanosService} from…
-
0
votes1
answer209
viewsA: Return Json value with angular 2
Try using Reactiveforms from Angular together with Formgroup and its formControls. Basically you normally configure the form in HTML and Typescript you define values, validators and etc. In the…