Created
September 30, 2017 11:46
-
-
Save sharikovvladislav/e5c7c1940ecb0876635db446bca18fb0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component({ | |
selector: 'tags-internal-auto-complete-results', | |
template: ` | |
<div class="container"> | |
<span *ngFor="let tag of data" (click)="selectTag.emit(tag);" class="tag"> | |
{{tag.name}} | |
</span> | |
</div> | |
`, | |
styleUrls: ['../styles/tags-auto-complete.styles.css'], | |
styles: [ | |
` | |
.container { | |
border: 1px solid #9e9e9e; | |
padding: 2px; | |
margin-top: 1px; | |
} | |
` | |
], | |
}) | |
export class TagsAutoCompleteResultsComponent { | |
@Input() data: Tag[] = []; | |
@Output() selectTag = new EventEmitter<Tag>(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment