Coder Social home page Coder Social logo

Comments (14)

AshleyGrant avatar AshleyGrant commented on May 5, 2024 3

It is not currently supported. This is on the roadmap, though.

from framework.

EisenbergEffect avatar EisenbergEffect commented on May 5, 2024 2

We plan to do it eventually. But there's other things we need to take care of first. We'll leave this ticket open to track this and update on our progress.

from framework.

EisenbergEffect avatar EisenbergEffect commented on May 5, 2024

Not exactly, but neither can Polymer's entirely. Polymer basically has three layers: Polyfills (based on proposed standards), Prolyfills (things they like and might one day try to submit to a standards body but that aren't standards based at all) and Polymer Elements (basically a framework built on top of all of that stuff). So, in order to use Polymer elements you actually need all three layers...which last I checked is bigger than all of Aurelia.

Aurelia custom elements aren't built that way. Rather they are just handled by the html template compiler. But Aurelia can work with any Web Component, Polymer or otherwise. In order to use Aurelia's custom elements, you would have to bring in the entire framework, just like with Polymer.

Right now, there isn't an easy way to use just an element built with Aurelia inside of your app without your app being an Aurelia app. However, it would be possible to wrap Aurelia's custom elements up inside of a Web Component. We are considering doing this for the future. When we do that, you will be able to use them outside of an Aurelia app....but you would still need the framework infrastructure in order to make the elements work...just like Polymer.

I did a good amount of experimentation with Web Components. Unfortunately, there are a lot of flaws to the design. By not leveraging Web Components directly for Aurelia's elements, we were able to do a lot of things not possible with Web Components. Examples of that include using dependency injection, greater control over databinding and locally scoped elements.

Does that answer the question? Anything else I can help clarify there?

from framework.

olanod avatar olanod commented on May 5, 2024

Yes thanks, that answers the question.
I still feel this should be possible, it's part of the philosophy of web components to create little isolated packages that you can distribute and use anywhere. Aurelia custom elements could try to depend in a smaller part of the framework or be pre-built to be easily integrated in other apps html-importing them or requiring them from js and letting the user register this elements manually in the DOM.
I'll be looking forward to see how things go in the future, keep up the good work.

from framework.

Serhioromano avatar Serhioromano commented on May 5, 2024

That is good feature but I do not think it is priority right now. I would target it to version 2 if at all accepted.

from framework.

Serhioromano avatar Serhioromano commented on May 5, 2024

Would be nice if you start work with milestones. That would help visually see how close we are and what is planned for next releases. Also labels would be nice to see what is feature, what is bugs.

I think soon there will be very heavy traffic here very soon. So issues management is essential or it will quickly get ugly.

But I would definitely move this feature into the darkest corner for now.

from framework.

0x-r4bbit avatar 0x-r4bbit commented on May 5, 2024

@olanod Just to make things clear, if the browser supports all web component technologies, you don't need any polyfill at all.

So you really end up with Polymer as a dependency itself then, which is actually super thin. And so is aurelia.

from framework.

k2s avatar k2s commented on May 5, 2024

Probably related to bnavetta/aurelia-polymer#7.

from framework.

Robula avatar Robula commented on May 5, 2024

Any news on this? I've just tried attempting this myself and I'm not even sure if it's possible.

from framework.

Alexander-Taran avatar Alexander-Taran commented on May 5, 2024

Pretty sure that when we get there there will be a giant billboard: "web components are here"

can be closed

from framework.

EisenbergEffect avatar EisenbergEffect commented on May 5, 2024

We've got a webcomponents library that turns aurelia elements into web components today. We haven't announced it, mainly because we're waiting for someone that cares enough about this feature to test it, provide feedback and help us fix any issues. So far, no takers.

from framework.

Alexander-Taran avatar Alexander-Taran commented on May 5, 2024

need a couple of hints on how to do that
barrier of entry

from framework.

EisenbergEffect avatar EisenbergEffect commented on May 5, 2024

Ok, I've published a 0.1.0 release of the web components plugin and added a bit of documentation in the readme on how to use it. It's never been tested, so it may not work at all. It was a first stab at the implementation I did a while back. It hasn't been touched in quite some time since we didn't have a lot of requests for it. I think now is the time to revisit this and get a working release out though. You can find it here: https://github.com/aurelia/web-components

Any bugs/features can be tracked against the dedicated repo.

from framework.

Alexander-Taran avatar Alexander-Taran commented on May 5, 2024

@EisenbergEffect thanks a lot.
I'll get my hands on it soon.

from framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.