3 ms·
It lets you bundle up the html, css and javascript in one place. Imagine a video player with css buttons and a video section. you include the component source t
by jfoutz 11y ago
It lets you bundle up the html, css and javascript in one place. Imagine a video player with css buttons and a video section. you include the component source then put in a <my-player/> tag somewhere. That's the gist anyway. kinda sorta like client side taglibs like you'd see in jsp pages.
- douche 11y agoSo it's like an ASP.NET MVC partial view, with css and javascript defined in the view cshtml file instead of in external files?
- jfoutz 11y agonot so familiar with ASP.NET, but yeah that sounds about right. The key is it runs in the browser itself, rather than being a bundle that's compiled and moved around at build or run time. you take all your standard html5 stuff, bundle it in one file, and serve that to any client that wants a video player. You can, of course, play minification games or whatever to reduce the number of files - but the pure form is, one include == one component.
- itaysk 11y agoI was just going to write it's like ASP.NET Web Forms User Controls. Only that was server-driven.