First component which renders the file select html 
When I click on browse button I redirect to another component Fileselect component which is second component this.goto('fileselect');
Problem is when I select a file from file component I have to display it in the input field of the first component
When I click on the Select class button I am calling redirect() function.
In file select component I have used service to pass the file name to the first component as shown in the below code
redirect(){
this._messageService.filter(this.selectedFile);
this.router.navigateByUrl('');
}
And in the First Component where I want this file name, I have subscribed to function as shown
ngOnInit() {
this._messageService.listen().subscribe((m:any) => {
this.fileName = m
this.loadXMLasJSON()
console.log(this.fileName)
});}
I am assigning the variable that is this.fileName in the subscribe function when I console.log I am getting the filename. But the view is not getting updated.
My view code
<input type="text" class="form-control image-preview-filename" value="{{fileName}}" />
What could be the problem?
Please help me with this.

this.fileName? - Radonirina Maminiaina