Created
February 5, 2016 18:44
-
-
Save jonvuri/1c3942063a2d1e9ab7dd to your computer and use it in GitHub Desktop.
Polymer interfacing idea
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
| <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