Web Component to load Javascript modules
npm install x-divCheck for browser compatibility here.
Use it like:
myPage.html
``html`
`
mycontroller.jsjavascript`
xController(function (element){
var whoisThis = (this === element) ? true : false; //true;
});
The xController receives a callback which receives the element it is inserted
into as an argument.
npm install x-div
`
Bower`
bower install x-div
`Testing
To test your x-div components just load x-div-tester.js instead of x-div.js
and load your controller file with a