This file contains hidden or 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
add() { | |
return `${this.a} + ${this.b} = ${this.a + this.b}`; | |
} |
This file contains hidden or 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
𝒮(() => { | |
console.log(app); | |
}); |
This file contains hidden or 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
window.addEventListener('app.onReady',function() { | |
app.components.load("GoogleMap").then(function(GoogleMap) { | |
var newComp = document.createElement('div'); | |
newComp.innerHTML = '<div class="c_google-map__map"></div>'; | |
newComp.setAttribute('data-component',''); | |
newComp.setAttribute('data-component-init',''); | |
newComp.setAttribute('data-module','GoogleMap'); | |
newComp.setAttribute('data-zoom','1'); | |
newComp.setAttribute('id','map2'); | |
newComp.classList += 'c_google-map'; |
This file contains hidden or 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
dragon.ready().then(() => { | |
var myMap = dragon.components.googlemap.map1; | |
myMap.zoom = 1; | |
}); |
This file contains hidden or 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
<div data-component data-component-init data-compoent-module="googlemap" data-lat="4.570868" data-lng="-74.297333" data-zoom="5" data-component-id="map3" class="c_google-map"> | |
<div class="c_google-map__map"></div> | |
</div> |
NewerOlder