2021-06-06 17:06:56 -03:00
< div class = "code" >
< ul ngbNav # navCodeTemplate = "ngbNav" class = "nav-tabs code-tab" >
2021-06-12 17:18:59 -05:00
< li ngbNavItem * ngIf = "code.codeSample.curl" >
< a ngbNavLink > cURL</ a >
2021-06-06 17:06:56 -03:00
< ng-template ngbNavContent >
2021-06-12 17:18:59 -05:00
< div class = "subtitle" >< ng-container i18n = "API Docs code example" > Code Example</ ng-container > < app-clipboard [ text ]=" wrapCurl ( code . codeSample . curl )" ></ app-clipboard ></ div >
< pre >< code [ innerText ]=" wrapCurl ( code . codeSample . curl )" ></ code ></ pre >
2021-06-06 17:06:56 -03:00
</ ng-template >
</ li >
< li ngbNavItem >
2021-06-10 15:38:15 -05:00
< a ngbNavLink > CommonJS</ a >
2021-06-06 17:06:56 -03:00
< ng-template ngbNavContent >
2021-06-11 14:54:57 -05:00
< div class = "subtitle" >< ng-container i18n = "API Docs code example" > Code Example</ ng-container > < app-clipboard [ text ]=" wrapCommonJS ( code . codeSample . commonJS )" ></ app-clipboard ></ div >
2021-06-06 17:06:56 -03:00
< div class = "links" >
2021-07-24 17:00:11 -03:00
< a href = "https://github.com/mempool/mempool.js" target = "_blank" > github repository</ a >
2021-06-06 17:06:56 -03:00
</ div >
< pre >< code [ innerText ]=" wrapCommonJS ( code . codeSample . commonJS )" ></ code ></ pre >
</ ng-template >
</ li >
2021-06-12 17:18:59 -05:00
< li ngbNavItem >
< a ngbNavLink > ES Module</ a >
2021-06-06 17:06:56 -03:00
< ng-template ngbNavContent >
2021-06-12 17:18:59 -05:00
< div class = "subtitle" >< ng-container i18n = "API Docs install lib" > Install Package</ ng-container > < app-clipboard [ text ]=" esModuleInstall " ></ app-clipboard ></ div >
< div class = "links" >
2021-07-24 17:00:11 -03:00
< a href = "https://github.com/mempool/mempool.js" target = "_blank" > github repository</ a >
< a href = "https://www.npmjs.org/package/@mempool/mempool.js" target = "_blank" > npm package</ a >
2021-06-12 17:18:59 -05:00
</ div >
< pre >< code [ innerText ]=" esModuleInstall " ></ code ></ pre >
< div class = "subtitle" >< ng-container i18n = "API Docs code example" > Code Example</ ng-container > < app-clipboard [ text ]=" wrapESmodule ( code . codeSample . esModule )" ></ app-clipboard ></ div >
< pre >< code [ innerText ]=" wrapESmodule ( code . codeSample . esModule )" ></ code ></ pre >
2021-06-06 17:06:56 -03:00
</ ng-template >
</ li >
</ ul >
< div [ ngbNavOutlet ]=" navCodeTemplate " ></ div >
< div * ngIf = "code.responseSample" class = "response" >
2021-06-11 14:54:57 -05:00
< div class = "subtitle" >< ng-container i18n = "API Docs API response" > Response</ ng-container > < app-clipboard [ text ]=" code . responseSample " ></ app-clipboard ></ div >
2021-06-06 17:06:56 -03:00
< pre >< code [ innerText ]=" code . responseSample " ></ code ></ pre >
</ div >
</ div >