mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-27 11:03:43 +03:00
23 lines
562 B
TypeScript
23 lines
562 B
TypeScript
'use strict';
|
|
|
|
import { SchemaManager, RedocComponent, BaseComponent } from '../base';
|
|
import { OptionsService } from '../../services/index';
|
|
|
|
@RedocComponent({
|
|
selector: 'api-info',
|
|
styleUrls: ['./api-info.css'],
|
|
templateUrl: './api-info.html'
|
|
})
|
|
export class ApiInfo extends BaseComponent {
|
|
data: any;
|
|
specUrl: String;
|
|
constructor(schemaMgr:SchemaManager, private optionsService:OptionsService) {
|
|
super(schemaMgr);
|
|
}
|
|
|
|
prepareModel() {
|
|
this.data = this.componentSchema.info;
|
|
this.specUrl = this.optionsService.options.specUrl;
|
|
}
|
|
}
|