0.0.15 • Published 5 years ago
mana-3rd-lib v0.0.15
Installation
npm install mana-3rd-lib --save
How to use
Setup app module
Add ManaServiceProvider
to src/app/app.module.ts
to providers section
import { ManaServiceProvider } from 'mana-3rd-lib';
providers: [
ManaServiceProvider
]
and add HttpClientModule
to imports section
import { HttpClientModule } from '@angular/common/http';
imports: [
HttpClientModule
]
Setup page
Give your mcontentid from mana 3rd api and replace mcontentid to you code
import { ManaServiceProvider } from 'mana-3rd-lib';
constructor(public manaService: ManaServiceProvider){ }
ionViewDidEnter()
{
this.manaService.initPageApi("[mcontentid]");
}
...