Created
June 17, 2018 09:47
-
-
Save oyeharry/c2745ee79c3f7ffba75c65d73be1bb22 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//This is how we initialised component in the old days. | |
//jQuery plugin example | |
$('#myComponentElement').myAwesomeComponent({value:'Awesome'}); | |
//ExtJS framework example | |
Ext.create('Ext.MyAwesomeComponent', { | |
id:'myComponent', | |
renderTo: document.querySelector('#myComponentElement'), | |
html:'Awesome' | |
}); | |
//BackboneJS View example | |
new MyAwesomeComponentView({model:'awesome', el:'#myComponentElement'}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment