Skip to content

Commit

Permalink
use default empty_outlet
Browse files Browse the repository at this point in the history
  • Loading branch information
gilsdav committed Nov 28, 2023
1 parent 5f1a373 commit 57c455e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 25 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Based on and extension of [ngx-translate](https://github.com/ngx-translate/core)
| 14 | 5.1.1 | 2.0.0 | active | need rxjs 7 or higher |
| 15 | 6.0.0 | 2.0.0 | active | minimum angular 15.0.3 |
| 15.1 | 6.1.0 | 2.0.0 | active | minimum angular 15.1.0 |
| 16 | 7.0.0 | 2.0.0 | active | minimum angular 16 |

Demo project can be found under sub folder `src`.

Expand Down
2 changes: 1 addition & 1 deletion projects/ngx-translate-router/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gilsdav/ngx-translate-router",
"version": "7.1.0",
"version": "7.0.0",
"homepage": "https://github.com/gilsdav/ngx-translate-router#readme",
"license" : "MIT",
"author": {
Expand Down
22 changes: 0 additions & 22 deletions projects/ngx-translate-router/src/lib/empty_outlet.ts

This file was deleted.

3 changes: 1 addition & 2 deletions projects/ngx-translate-router/src/lib/localized-router.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { Router, ROUTES, Route, DefaultExport, Routes, PRIMARY_OUTLET } from '@angular/router';
import { Router, ROUTES, Route, DefaultExport, Routes, PRIMARY_OUTLET, ɵEmptyOutletComponent as EmptyOutletComponent } from '@angular/router';
import { Injector, Compiler, NgModuleFactory, PLATFORM_ID, inject, Injectable, EnvironmentInjector } from '@angular/core';
import { isPlatformBrowser } from '@angular/common';
import { from, of, isObservable, Observable, ConnectableObservable, Subject } from 'rxjs';
import { mergeMap, map, refCount, finalize } from 'rxjs/operators';
import { isPromise } from './util';
import { LocalizeParser } from './localize-router.parser';
import { EmptyOutletComponent } from './empty_outlet';

@Injectable({providedIn: 'root'})
export class LocalizedRouter extends Router {
Expand Down

0 comments on commit 57c455e

Please sign in to comment.