@Input
-
@Input 데코레이터Front-End/Angular 2018. 2. 8. 11:33
@Output EventEmitter 로 데이터 통신하는 방법과 이번에는 @Input 에 대해 사용법을 알아 보면 바인딩할 프로퍼티명을 지정. @Component({ selector : 'order-processor', template : ` Buying {{ quantity }} shares of {{ stockSymbol }} `, styles : [`:host { background : cyan; }`] }) export default class OrderComponent { @Input() stockSymbol : string; @Input() quantity : number; } @Input으로 stockSymbol, quantity 값 지정 @Component({ selector : 'inpu..