Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49210

[stencil] Question about stencil props

$
0
0

@zwacky wrote:

Hey folks
I’m really excited about stencil and wanted to try it out immediately, even though the docs are somewhat limited.

PSA: I have no prior react knowledge.

When we have this standard component: <my-name first="my" last="name" />, shouldn’t it also be working with just <my-name props={first: 'my', last: 'name'} />?

I wanted to use the stencil-router and came across component-props:

<stencil-router id="router">
    <stencil-route url="/" component="my-name" router="#router" component-props={first: 'my', last: 'name'} exact={true} />
</stencil-router>

but it won’t work. What am I missing?
Cheers

Edit: https://github.com/ionic-team/stencil-router/issues/4

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49210

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>