Skip to content

MVC-Elements/BackboneElements

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reactive Elements

Backbone views as native HTML elements (web components)

Tiny Google Polymer or Mozilla X-Tags add-on which allows to use Backbone views as custom HTML elements. Also works with a native Custom Elements implementation if present.

Demo

Example

Using component in HTML

<body>
	<my-backbone-component label="{window.myLabel}"></my-backbone-component>
</body>

Backbone view definition

//TODO backbone view example here

document.registerBackbone('my-backbone-component', BackboneView);

Find complete examples in corresponding folder.

Nesting

Original content of a custom element is injected to component as attributes._content.

<my-backbone-component>Hello world</my-backbone-component>

In this case attributes._content is equal to "Hello world".

Dependencies

License

MIT: http://mit-license.org/

Copyright 2014 Stepan Suvorov aka stevermeister, Denis Radin aka PixelsCommander

About

Allows to use Backbone view as HTML element

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published