Vheissu / aurelia-for-real-world-web-applications-book-feedback

Post feedback as issues here on Github for the Aurelia book. Be as descriptive and honest as you like.
15 stars 0 forks source link

show example of building advanced components #27

Open opcodewriter opened 8 years ago

opcodewriter commented 8 years ago

So far book covers different subjects since App Docs is poor now, which is great, but I will expect also some concrete examples.

One of them is how to build advanced components with reusability in mind.

Vheissu commented 8 years ago

Do you mean components reusable within Aurelia or components that can be used outside of Aurelia like web components, perhaps you meant both?

opcodewriter commented 8 years ago

both since you mentioned it :)

I was thinking about having concrete examples of containment scenarios, for example:

hope this is useful...

wshayes commented 8 years ago

Not sure if this is the type of components you were mentioned, but I've been trying to build a plugin that wrapped some complex form elements as Aurelia custom elements and make them available as standalone components using the Aurelia Enhance feature. FYI - Patrick Walters did a lot of this work. We got it to where we could inject these into a plain'ish html page preloaded with data, but then getting the form data out is stumping me. I'm still not sure if this is a good use of Aurelia.

UPDATE: getting form data out just requires using jQuery correctly :)

opcodewriter commented 8 years ago

if you look to XAML, you see how nice the containment, templating and extending is working