Created
September 2, 2017 14:05
-
-
Save cbfranca/92206e7205f2f4e82cbaebfc780d5f37 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
<dom-module id="brasil-js"> | |
<template> | |
<style> | |
:host { | |
display: block; | |
} | |
</style> | |
<h1>Bem-vindo à BrasilJS [[year]] , edição de [[edition]]. =)</h1> | |
</template> | |
</dom-module> | |
<script type="text/javascript" src="brasiljs.js"></script> |
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
/// <reference path="bower_components/polymer-ts/polymer-ts.d.ts" /> | |
@component("brasil-js") | |
class BrasilJs extends polymer.Base { | |
@property({ type: String }) | |
private edition: string; | |
@property({ type: String }) | |
private year: string; | |
constructor() { | |
super(); | |
} | |
} | |
BrasilJs.register(); |
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
<!-- | |
@license | |
Copyright (c) 2016 The Polymer Project Authors. All rights reserved. | |
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt | |
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | |
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt | |
Code distributed by Google as part of the polymer project is also | |
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt | |
--> | |
<!doctype html> | |
<html lang="pt-br"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes"> | |
<title>Brasil JS - Ts Sample</title> | |
<meta name="description" content="BrasilJS - Ts Sample"> | |
<link rel="import" href="../../../bower_components/polymer/polymer.html"> | |
<link rel="import" href="../../../bower_components/polymer-ts/polymer-ts.html"> | |
<link rel="import" id="bundle" href="brasiljs.html"> | |
</head> | |
<body> | |
<brasil-js edition="Fortaleza" year="2017"></brasil-js> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment