Thanks Maksim for quick reply.
I added the code you gave and now i am getting the below error in console.
Uncaught Error: resource Goods.view.xml could not be loaded from resources/Goods.view.xml. Check for 'file not found' or parse errors. Reason: Resource could not be found!
My view name is - Goods.view.xml
and in component.js in routing config i have below code.
| config : { | ||||||||
| viewType : "XML", | ||||||||
| viewPath : "", | ||||||||
| targetControl : 'mainContent', | ||||||||
| // | targetAggregation : "pages", | |||||||
| clearTarget : false, | ||||||||
| transition : 'slide' | ||||||||
| }, |