Skip to content

About

Register Regular's Component to Custom Elements

Resources

Stars

3 stars

Watchers

5 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

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

3 stars

Watchers

5 watching

Forks

Releases

Packages

Contributors

Languages