if (!isNullOrUndefined(item.title)) {
item.title = item.title.replace('{type}', this.checkTitle(item, child.snapshot.params.type));
item.title = item.title.replace('{id}', child.snapshot.params.id);
if (!isNullOrUndefined(item.title)) {
item.title = item.title.replace('{type}', this.checkTitle(item, child.snapshot.params.type));
item.title = item.title.replace('{id}', child.snapshot.params.id);