angular-deezer-api
v0.1.3
Published
## Installation
Downloads
11
Readme
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