Skip to content

regularjs/customelements-register

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CustomeElements-Register

Register your Regular Component to Custom Elements.

Usage

Use bower to install the script.

bower install regular-register

Then define your component and register it.

var MyComponent = Regular.extend(...);
Regular.registerElement('r-mycomponent', MyComponent);

After that, you are free to go:

<html>
  <head>
  	<script src="bower_components/regularjs/dist/regular.js"></script>
    <script src="bower_components/regular-register/index.js"></script>
  </head>
	<body>
  	<r-mycomponent attribute="value" ...></r-mycomponent>
  </body>
</html>

Warning: At this time, it only works in browers that support web components natively.

License

The MIT License (MIT)

About

Register Regular's Component to Custom Elements

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published