Basic form
Change-Id: I7ee858b208730b110b355d3f72037f0975aaa356
diff --git a/src/app/core/services/page-title.ts b/src/app/core/services/page-title.ts
index fb1e5a7..865149d 100644
--- a/src/app/core/services/page-title.ts
+++ b/src/app/core/services/page-title.ts
@@ -12,7 +12,7 @@
private $transitions: any // missing definition
) {
this.$transitions.onSuccess({ to: '**' }, (transtion) => {
- this.set(this.formatStateName(transtion.$to().name));
+ this.set(transtion.$to().name);
});
}
@@ -21,12 +21,12 @@
}
set(title: string) {
- this.$window.document.title = `${StyleConfig.projectName} - ${title}`;
+ this.$window.document.title = `${StyleConfig.projectName} - ${this.formatStateName(title)}`;
}
private formatStateName(stateName: string): string {
// TODO pluralize and capitalize first letter only
- return stateName.replace('xos.', '').toUpperCase();
+ return stateName.replace('xos.', '').split('.').join(' > ');
}
}