K
K
kikosko2018-06-28 13:18:19
Angular
kikosko, 2018-06-28 13:18:19

Why is the child component not showing?

There is a child parent component recipies (1 photo), which contains 2 children: (ricipie-list, recipies-detail) and the recepie.model module (2 photos). recepie.model is a constructor that I include in ricipie-list.component.ts (3 photos), then I iterate over the properties of the recepies array in ricipie-list.component.html and display them (photo 4), then I want to accept the properties in recipies-detail.component.ts through the Input decorator (photo 5) and output accordingly to recipies-detail.component.html (photo 6). But the app-recipies-detail component does not output and there is no error. Please help me understand
Git
Photo 1: 5b34b592292ed601513441.jpeg
Photo 2: 5b34b5c7d7271565492115.jpeg
Photo 3: 5b34b5ccbddf4170167643.jpeg
Photo 4: 5b34b5d224437490707127.jpeg
Photo 5: 5b34b5d6f1fb9846710567.jpeg
Photo 6:5b34b5db928a8689189803.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-06-28
@kikosko

You don't have an array of the same name in the recepies component, it is in the recipie-list. Obviously, this array needs to be transferred to recepies (then it can be bypassed using ngfor to create recipies-detail instances), and pass it as a parameter to recipie-list.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question