Naughty Platypus Memorabilia

    @kilimanjaare/open-weather
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.2 • Public • Published

    OpenWeather Angular Client

    This library provides Angular client bindings to the OpenWeather service.

    Setup

    Import OpenWeatherModule inside your module

    import {OpenWeatherModule} from '@kilimanjaare/open-weather';
    import {NgModule} from '@angular/core';
    
    @NgModule({
      imports: [
          OpenWeatherModule.forRoot({
            apiKey: 'your-api-key',
            apiUrl: 'your-api-url'
          })
      ]
    })

    Usage

    Inject OpenWeatherService in your class

    import {OpenWeatherService} from '@kiliemanjaare/open-weather';
    
    export class TestComponent {
      constructor(
        private openWeatherService: OpenWeatherService
      ) {
      }
    }

    Install

    npm i @kilimanjaare/open-weather

    DownloadsWeekly Downloads

    5

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    203 kB

    Total Files

    83

    Last publish

    Collaborators

    • kilimanjaare