Improve Angular project structure and code organization (#1328)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { RxStompService } from './rx-stomp.service';
|
||||
import { createRxStompConfig } from './rx-stomp.config';
|
||||
import {AuthService} from '../../core/service/auth.service';
|
||||
import {AuthService} from '../service/auth.service';
|
||||
|
||||
export function rxStompServiceFactory(authService: AuthService) {
|
||||
const rxStomp = new RxStompService(authService);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {RxStompConfig} from '@stomp/rx-stomp';
|
||||
import {AuthService} from '../../core/service/auth.service';
|
||||
import {API_CONFIG} from '../../config/api-config';
|
||||
import {AuthService} from '../service/auth.service';
|
||||
import {API_CONFIG} from '../../core/config/api-config';
|
||||
|
||||
export function createRxStompConfig(authService: AuthService): RxStompConfig {
|
||||
return {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import {RxStomp, RxStompConfig} from '@stomp/rx-stomp';
|
||||
import { AuthService } from '../../core/service/auth.service';
|
||||
import { AuthService } from '../service/auth.service';
|
||||
import { createRxStompConfig } from './rx-stomp.config';
|
||||
|
||||
@Injectable({
|
||||
|
||||
Reference in New Issue
Block a user