how can I set a datapicker input on angular 2 material from a component?
问题 I've already got the content that is sent by a form home.component.ts ... constructor(private route: ActivatedRoute){} /** * Get the names OnInit */ ngOnInit() { this.form= { postcode: this.route.snapshot.params['postcode'], date_from: this.route.snapshot.params['date_from'], date_to: this.route.snapshot.params['date_to'] } console.log( this.form); // {postcode: "WEDSW", date_from: "11/09/2017", date_to: "16/09/2017"} } now what I need to do it's to populate it doing something like <input