Skip to content

Commit

Permalink
Adjustment in return previsions
Browse files Browse the repository at this point in the history
  • Loading branch information
andrelmlins committed Jan 12, 2020
1 parent db24445 commit 67ea147
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
31 changes: 18 additions & 13 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
<!DOCTYPE html>
<html dir="ltr" lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0">
<title>Stencil Component Starter</title>
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0"
/>
<title>Stencil Component Starter</title>

<script type="module" src="/build/select-previsao-ondas.esm.js"></script>
<script nomodule src="/build/select-previsao-ondas.js"></script>

</head>
<body>

<my-component first="Stencil" last="'Don't call me a framework' JS"></my-component>

</body>
<script type="module" src="/build/select-previsao-ondas.esm.js"></script>
<script nomodule src="/build/select-previsao-ondas.js"></script>
<script>
function handleChange(e) {
console.log(this);
}
</script>
</head>
<body>
<my-component onchange="handleChange(this)"></my-component>
</body>
</html>
2 changes: 1 addition & 1 deletion src/services/previsao-ondas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class PrevisaoOndasService {
public async getPrevisoes(cidade: String) {
const response = await fetch(`${this.url}/onda/cidade/${cidade}`);
const data = await response.json();
return data.estado.dias;
return data.dias;
}
}

Expand Down

0 comments on commit 67ea147

Please sign in to comment.