0.7.5 • Published 3 years ago
oweather-container v0.7.5
oweather-container
This is a simple weather display component for VueJS.
Install
npm i oweather-container
Usage
To use the component simply install the npm package and use the component as any other VueJS NPM component. For example:
<template>
<v-app>
<v-main>
<oweather city="Kaunas" apiKey="19701743c8c0c3b9e6f8607e687c82f7"/>
</v-main>
</v-app>
</template>
<script>
import oweather from 'oweather-container';
export default {
name: 'App',
components: {
oweather
},
data: () => ({
//
}),
};
</script>
The component receives 2 props: city - name of the city for which we want to display weather data. apiKey - OpenWeather API key which is given after registering an account at https://openweathermap.org/
License
NONE