Revision 56976
Added by Konstantinos Triantafyllou over 4 years ago
string-utils.class.ts | ||
---|---|---|
1 |
import {UrlSegment} from '@angular/router'; |
|
2 |
|
|
1 | 3 |
export class Dates { |
2 | 4 |
public static isValidYear(yearString){ |
3 | 5 |
// First check for the pattern |
... | ... | |
135 | 137 |
return sliced + (String(mystr).length > size ? '...' : ''); |
136 | 138 |
} |
137 | 139 |
|
140 |
public static URLSegmentsToPath(segments: UrlSegment[]): string { |
|
141 |
let path = ''; |
|
142 |
segments.forEach(route => { |
|
143 |
path += '/' + route.path; |
|
144 |
}) |
|
145 |
return path; |
|
146 |
} |
|
138 | 147 |
} |
Also available in: Unified diff
Fix bug on adminLoginGuard wrong redirectedUrl on canLoad.