I'm learning Angular 2. In order for that I'm creating a component which should receive as parameter in its attributes an array of other components.
Here is my code so far:
<card
[actions]='[<icon name="tick"></icon>]'
>
<span>Example</span>
</card>
In this case, to my component Card
I'm trying to send an array, (in this case of just one component) of another component.
This is not working. How should I fix that?
EDIT
What I'm trying to do, is to render inside that card component the actions
components in one part of the component, and ng-content
in other part of the component