redoc/lib/components/ApiInfo/api-info.ts
Roman Hotsiy 53b4f55876 Refactor
2016-06-22 21:53:11 +03:00

23 lines
558 B
TypeScript

'use strict';
import { SpecManager, 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:SpecManager, private optionsService:OptionsService) {
super(schemaMgr);
}
prepareModel() {
this.data = this.componentSchema.info;
this.specUrl = this.optionsService.options.specUrl;
}
}