I want to get current path in my angular component but upto a specifies folder. My code is as follows
var loc = window.location.pathname;
T