Skip to content

Instantly share code, notes, and snippets.

@jonvuri
Created February 5, 2016 18:44
Show Gist options
  • Select an option

  • Save jonvuri/1c3942063a2d1e9ab7dd to your computer and use it in GitHub Desktop.

Select an option

Save jonvuri/1c3942063a2d1e9ab7dd to your computer and use it in GitHub Desktop.
Polymer interfacing idea
<dom-module id="interfaced-el">
<template>
</template>
<script>
Polymer({
is: 'interfaced-el',
properties: {
// Public properties
path: String,
options: {
type: Object,
notify: true
},
// Public methods
go: function () {
this.invokeRequest()
}
},
// Private properties
request: Object,
// Private methods
invokeRequest: function () {
this.request.invoke()
}
})
</script>
</dom-module>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment