0.1.21 • Published 18 days ago

pkmng v0.1.21

Weekly downloads
-
License
-
Repository
github
Last release
18 days ago

Pkmng

pkmng is an Angular wrapper of PokéAPI.

It features auto caching in browser storage and enumerations to help consumers figure out what to pass to the API.

Exposed Services

Exposed services (self-explanatory):

  • BerryService
  • ContestService
  • EncounterService
  • EvolutionService
  • GameService
  • ItemService
  • LocationService
  • MachineService
  • MoveService
  • PokemonService
  • UtilityService

Usage

import { Component, inject, OnInit } from '@angular/core';
import { BerryService, PkmngModule } from 'pkmng';
import { RouterOutlet } from '@angular/router';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [
    RouterOutlet,
    PkmngModule
  ],
  templateUrl: './app.component.html',
  styleUrl: './app.component.scss'
})
export class AppComponent implements OnInit {
  
  berryService = inject(BerryService);

  ngOnInit(): void {
    this.berryService.getBerry('oran').subscribe((berryData) => {
      console.log(berryData);
    });
  }
}

License

This software uses the MIT license. For more information, see LICENSE.

TODO

  • in-code documentation

This project was generated with Angular CLI version 17.3.5.

0.1.20

18 days ago

0.1.21

18 days ago

0.1.18

18 days ago

0.1.19

18 days ago

0.1.17

2 years ago

0.1.16

2 years ago

0.1.15

2 years ago

0.1.14

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago