You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{Component,OnInit,Input}from'@angular/core';
@Component({selector: 'app-blue-box',templateUrl: './blue-box.component.html',styleUrls: ['./blue-box.component.css']})exportclassBlueBoxComponentimplementsOnInit{constructor(){}ngOnInit(){}
@Input()message: string;// <-- the "message" property available for binding, can receive message 'Test Message' from view}
The text was updated successfully, but these errors were encountered:
Pass data from a view page like this:
Receive data using Input Directive like this:
The text was updated successfully, but these errors were encountered: