import { AppComponent } from '../app.component'; import { Localization } from '../library/localization'; import { ScreenOperations } from '../library/screenOperations'; declare const jQuery; export class RdComponent { // Math = Math; // JSON = JSON; // console = console; // document = document; window = window; jQuery = jQuery; toastr = ScreenOperations.toastr; translate = Localization.translate; error(note) { var className: string = this.constructor.toString().match(/\w+/g)[1]; console.error(className + ": " + note); } navigate(params) { AppComponent.instance.router.navigate(params); } trackByIndex(index, item: any) { return index } }