44024: simple search UI with working search results

This commit is contained in:
Lotte Hofstede
2017-08-21 15:32:52 +02:00
parent 563cf6e820
commit bacb048bb6
26 changed files with 183 additions and 39 deletions

View File

@@ -6,8 +6,9 @@ import { ListableObject } from '../listable-object/listable-object.model';
styleUrls: ['./object-list-element.component.scss'],
templateUrl: './object-list-element.component.html'
})
export class ObjectListElementComponent {
// In the current version of Angular4, @Input is not supported by the NgComponentOutlet - instead we're using DI
constructor(@Inject('objectElementProvider') public object: ListableObject) { }
export class ObjectListElementComponent <T extends ListableObject> {
object: T;
public constructor(@Inject('objectElementProvider') public listable: ListableObject) {
this.object = listable as T;
}
}