0.1.3 • Published 7 years ago

angular-deezer-api v0.1.3

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

angular-deezer-api

Installation

To install this library, run:

$ npm install angular-deezer-api --save

Use this library

Once you have downloaded this library you can use on your angular module.

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

// Import your library
import { DeezerApiModule } from 'angular-deezer-api';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,

    // Specify your library as an import
    DeezerApiModule.forRoot()
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Once your library is imported, you can use the service in component

import { DeezerApiService } from 'angular-deezer-api';

constructor(
  private deezerApiService: DeezerApiService,
) { //...

search(value) {
  this.deezerApiService.search(value).then(result => {
    console.log(result);
  });
}

Development

To generate all *.js, *.d.ts and *.metadata.json files:

$ npm run build

To lint all *.ts files:

$ npm run lint

License

MIT © Jeremy De la casa

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago