dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app/utils/HelperFunctions.class.ts @ 56013
1 |
export class HelperFunctions { |
---|---|
2 |
//Use this class function to create queryParams Objects in format {key1:value1} or {key1:value1,key2:value2,key3:value3,...} for multiple parameters
|
3 |
constructor() {} |
4 |
|
5 |
public static scroll() { |
6 |
if (typeof document !== 'undefined') { |
7 |
//this.element.nativeElement.scrollIntoView();
|
8 |
window.scrollTo(0, 0); |
9 |
}
|
10 |
}
|
11 |
|
12 |
public static isTiny(url: string) { |
13 |
return (url.indexOf('tinyurl.com') !== -1); |
14 |
}
|
15 |
}
|