Headless CMS and Content Managment Hub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

35 lines
845 B

/*
* Squidex Headless CMS
*
* @license
* Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved.
*/
import { Component, OnInit } from '@angular/core';
import { FormControl } from '@angular/forms';
import { AppsState, SchemasState } from '@app/shared';
@Component({
selector: 'sqx-schemas-page',
styleUrls: ['./schemas-page.component.scss'],
templateUrl: './schemas-page.component.html'
})
export class SchemasPageComponent implements OnInit {
public schemasFilter = new FormControl();
constructor(
public readonly appsState: AppsState,
public readonly schemasState: SchemasState
) {
}
public ngOnInit() {
this.schemasState.load().onErrorResumeNext().subscribe();
}
public trackByCategory(index: number, category: string) {
return category;
}
}