fixed core and shared module usage, lazy loading modules

This commit is contained in:
William Welling
2017-09-26 11:44:07 -05:00
parent 88120dd85b
commit 3d02e660da
71 changed files with 89 additions and 95 deletions

View File

@@ -0,0 +1,34 @@
import { Component, Input } from '@angular/core';
import { Item } from '../../../../core/shared/item.model';
/**
* This component can be used to represent metadata on a simple item page.
* It expects one input parameter of type Item to which the metadata belongs.
* This class can be extended to print certain metadata.
*/
@Component({
templateUrl: './item-page-specific-field.component.html'
})
export class ItemPageSpecificFieldComponent {
@Input() item: Item;
/**
* Fields (schema.element.qualifier) used to render their values.
*/
fields: string[];
/**
* Label i18n key for the rendered metadata
*/
label: string;
/**
* Separator string between multiple values of the metadata fields defined
* @type {string}
*/
separator = '<br/>';
}