Posts by Vicente Correia • 21 points
2 posts
-
0
votes1
answer212
viewsA: Problem defining functions in Angular models
In your Query you are declaring the query incorrectly, the correct would be so: consultas: Consulta; consultas: Array<Consulta>; and in your onInit() the right thing would be: ngOnInit(){…
-
2
votes3
answers132
viewsA: Best way to pass data from one component to another
I’m seeing that your logic is to make like a shopping cart, the best way to work with it in a scalable way is to use state management. At first you are working with only two components, pass…