biojs / biojs3

Draft of BioJS 3: Web components
BSD 3-Clause "New" or "Revised" License
18 stars 2 forks source link

Policy: how should we handle "web component-like" modules written in other libraries - e.g. Angular 1? #3

Open wilzbach opened 9 years ago

wilzbach commented 9 years ago

Angular 1's directives are conceptually similar to Custom Elements, but they are implemented without the Web Components API.

There are a couple of small problems with Angular directives

Here is my opinion (feel free to discuss): BioJS3 should only include "real" web components - any helper library that helps to create them and sticks to our (to be defined) API/policy is fine. And in the future this won't be a big problem, as Angular 2 directives will be web components :)

mhelvens commented 9 years ago

Hi Seb,

You know my thoughts on this, but let me put them on record: I don't think it's smart to "only allow X" in BioJS. Rather, each component needs to be properly annotated with which capabilities it does and doesn't have. This could be web-component, Angular 1, Angular 2, React, Riot, FRP, etc. The registry can be filtered by such capabilities, so you can easily look at all web-components if you want to.

Rather, if you're convinced that web-components are the best way to go, create a compelling proof of concept, and make people want to implement it. Let web-component-less modules be shamed into compliance through natural selection. ;-)