From another template, I can pass arguments to a component, such as:
<MyComponent @arg1="String" />
I know I could also pass another named object from the template's JS file, but I don't mean to ask about this.
My question is, what different data types can be passed in from the template, as a String was in the line above. Can I pass in booleans? What about an array of strings? And any special syntax for doing so?
Could I for example use to loop through an array argument? I guess the alternative's would be either to process through JS, or perhaps work with . Thanks.
Aucun commentaire:
Enregistrer un commentaire