Created
March 28, 2017 17:42
-
-
Save dormd/e1c7338fd1fda600fa490cdea74a0838 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
import { Component, Input, Output, EventEmitter } from '@angular/core'; | |
@Component({ | |
moduleId: module.id, | |
selector: 'document', | |
template: `...`, | |
styles: `...` | |
}) | |
export class DocumentComponent { | |
@Input() name: string; | |
@Input() size: number; | |
@Input() numOfPages: number; | |
@Input() content: string; | |
@Output() opened = new EventEmitter(); | |
@Output() contentChanged = new EventEmitter(); | |
@Output() closed = new EventEmitter(); | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment