dl-weather-component
v1.0.2
Published
Weather App Component
Downloads
14
Readme
Weather Report Component
This is a standalone weather report component that can be used on any platform when installed.
Getting Started
To start using this component:
npm install dl-weather-component
To use on an Vanilla JS application, add this to your html file:
<dl-weather-app></dl-weather-app>
and also import the script file:
<script type="module"
src="./node_modules/dl-weather-component/dist/stencil-weather-component/stencil-weather-component.esm.js"></script>
To use on an Angular application:
Update the module you want to use the component:
schemas: [CUSTOM_ELEMENTS_SCHEMA],
update the main.ts file:
import { defineCustomElements } from 'dl-weather-component/loader';
defineCustomElements(window);
then you can add this to the template of the compoent:
<dl-weather-app></dl-weather-app>
To change the theme color from the default #3b013b, add this to your CSS:
html {--theme-color: your-theme-color}