This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* tslint:disable:max-line-length */ | |
import {LongServiceNameService} from '../long/path/to/service/somwhere/in/project/long-service-name.service'; | |
/* tslint:enable:max-line-length */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {ApplicationRef, enableProdMode} from '@angular/core'; | |
import {enableDebugTools} from '@angular/platform-browser'; | |
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic'; | |
import {AppModule} from './app/app.module'; | |
import {environment} from './environments/environment'; | |
import {hmrBootstrap} from './hmr'; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class AppComponent { | |
@HostListener('click', [ | |
'$event.target', | |
'$event.button', | |
'$event.ctrlKey', | |
'$event.metaKey', | |
]) | |
private onClick( | |
eventTarget: HTMLElement, | |
button: number, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { HttpRequest, HttpResponse } from '@angular/common/http'; | |
import { Injectable } from '@angular/core'; | |
import { BehaviorSubject } from 'rxjs'; | |
export interface CachedData { | |
time: number; | |
body: object & HttpResponse<any>; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Component, ElementRef, Input, OnDestroy, OnInit, Renderer2} from '@angular/core'; | |
declare global { | |
interface Window { | |
_hcwp: any; | |
} | |
} | |
@Component({ | |
selector: 'hyper-comments', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Интерфейс картинок из бекенда битрикса. | |
* Требует доработки на бекенде, т.к. по умолчанию битрикс всё возвращает | |
* строками | |
*/ | |
export class BxImage { | |
ID: number; | |
TIMESTAMP_X: string; | |
MODULE_ID: string; | |
HEIGHT: number; |
NewerOlder