diff --git a/src/app/disease-typeahead/disease-typeahead.component.ts b/src/app/disease-typeahead/disease-typeahead.component.ts index 2b334f3..bfe5bb2 100644 --- a/src/app/disease-typeahead/disease-typeahead.component.ts +++ b/src/app/disease-typeahead/disease-typeahead.component.ts @@ -1,6 +1,6 @@ import { Component, computed, inject, signal } from '@angular/core'; import { AppDiseaseSearchComponent, AppDiseaseSuggestionsComponent } from './partials'; -import { DiseaseService } from '../shared/services/disease/disease.service'; +import { DiseaseService } from '#shared/services/disease/disease.service'; import { disabled, form } from '@angular/forms/signals'; @Component({ diff --git a/src/app/disease-typeahead/partials/suggestions/suggestions.component.ts b/src/app/disease-typeahead/partials/suggestions/suggestions.component.ts index 2412625..43e7ab8 100644 --- a/src/app/disease-typeahead/partials/suggestions/suggestions.component.ts +++ b/src/app/disease-typeahead/partials/suggestions/suggestions.component.ts @@ -1,6 +1,6 @@ import { Component, input } from '@angular/core'; -import type { Disease } from '../../../shared/services/disease/disease.service'; -import { HighlightDirective } from '../../../shared/highlight/highlight.directive'; +import type { Disease } from '#shared/services/disease/disease.service'; +import { HighlightDirective } from '#shared/directives/highlight/highlight.directive'; @Component({ imports: [HighlightDirective], diff --git a/src/app/shared/highlight/highlight.directive.ts b/src/app/shared/directives/highlight/highlight.directive.ts similarity index 100% rename from src/app/shared/highlight/highlight.directive.ts rename to src/app/shared/directives/highlight/highlight.directive.ts diff --git a/src/app/shared/services/disease/disease.service.ts b/src/app/shared/services/disease/disease.service.ts index b2e8d58..eb67adb 100644 --- a/src/app/shared/services/disease/disease.service.ts +++ b/src/app/shared/services/disease/disease.service.ts @@ -1,6 +1,6 @@ import { computed, Service } from '@angular/core'; import { httpResource } from '@angular/common/http'; -import { environment } from '../../../../environments/environment'; +import { environment } from '#env/environment'; export interface Disease { name: string; diff --git a/tsconfig.json b/tsconfig.json index d2fbb9c..aecaa69 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,7 +12,11 @@ "experimentalDecorators": true, "importHelpers": true, "target": "ES2022", - "module": "preserve" + "module": "preserve", + "paths": { + "#shared/*": ["./src/app/shared/*"], + "#env/*": ["./src/environments/*"] + } }, "angularCompilerOptions": { "enableI18nLegacyMessageIdFormat": false,