Skip to content

Instantly share code, notes, and snippets.

View AntonGorelov's full-sized avatar
:octocat:

Anton G AntonGorelov

:octocat:
  • WIS Software
  • Rostov-on-Don, Russia
View GitHub Profile
import { Injectable } from '@angular/core';
import { BehaviorSubject, Observable } from 'rxjs';
import {
ICompany,
ISchool,
IRegion,
IOrganization,
ICountry,
} from '@lib/models';
import { Injectable } from '@angular/core';
import { BehaviorSubject, Observable } from 'rxjs';
import { BlogPostService } from '@app/core/services';
import { MODE } from '@app/companies/components';
import { IBlogPost, ICompany, ICountry, IOrganization } from '@lib/models';
@Injectable()
export class BlogPostStateService {
import { Component, OnDestroy, OnInit, Input, OnChanges } from '@angular/core';
import { FormBuilder, FormGroup, Validators, FormControl } from '@angular/forms';
import { fromEvent, Subject } from 'rxjs';
import { switchMap, takeUntil } from 'rxjs/operators';
import { IPictureEvent } from '@app/shared/components';
import { updateFormValidation } from '@app/shared/helpers';
import { ICompany, ISchool, IRegion } from '@lib/models';
import { Component, OnDestroy, OnInit, ViewChild } from '@angular/core';
import { FormControl, FormGroup } from '@angular/forms';
import { trigger, state, style } from '@angular/animations';
import { BehaviorSubject, of } from 'rxjs';
import { switchMap } from 'rxjs/operators';
import { untilDestroyed } from 'ngx-take-until-destroy';
import { PermissionsService } from '@app/core';
import { ModalComponent } from '@app/shared/components';