import { Component, Output, EventEmitter, Input } from '@angular/core';
/**
* FooComponent description
*
* See {@link AppModule|APP}
*/
@Component({
selector: 'app-foo',
styles: [
`
.host {
width: 100%;
height: 4px;
top: 0;
position: fixed;
left: 0px;
}
`
],
template: `
`
})
export class FooComponent {
/**
* An example input
* {@link BarComponent} or [BarComponent2]{@link BarComponent} or {@link BarComponent|BarComponent3}
*/
@Input() exampleInput: string = 'foo';
/**
* An example required input
*/
@Input({ required: true }) requiredInput: string;
/**
* An example aliased input
*/
@Input('aliasedInput') aliasedInput: string;
/**
* An example aliased input using the object syntax
*/
@Input({ alias: 'aliasedInput' }) objectAliasedInput: string;
/**
* An example aliased required input using the object syntax
*/
@Input({ alias: 'aliasedInput', required: true }) aliasedAndRequired: string;
/**
* An example output
*/
@Output() exampleOutput: EventEmitter<{ foo: string }> = new EventEmitter();
/**
* constructor description
* @param {boolean} myprop description
*/
constructor(public myprop: boolean) {}
}