redoc/lib/components/ApiInfo/api-info.ts

23 lines
562 B
TypeScript
Raw Normal View History

'use strict';
2016-05-06 12:46:41 +03:00
import { SchemaManager, RedocComponent, BaseComponent } from '../base';
import { OptionsService } from '../../services/index';
@RedocComponent({
selector: 'api-info',
styleUrls: ['./api-info.css'],
templateUrl: './api-info.html'
})
2016-05-06 00:48:41 +03:00
export class ApiInfo extends BaseComponent {
data: any;
specUrl: String;
constructor(schemaMgr:SchemaManager, private optionsService:OptionsService) {
super(schemaMgr);
}
2016-06-13 20:54:24 +03:00
prepareModel() {
this.data = this.componentSchema.info;
2016-05-06 12:46:41 +03:00
this.specUrl = this.optionsService.options.specUrl;
}
}