forked from scttcper/ngx-toastr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "feat: Add provider function, convert to standalone and use in…
…ject (scttcper#991)" This reverts commit 94dba28.
- Loading branch information
Xavier Asensio
committed
Nov 22, 2023
1 parent
55d3e46
commit 51f5d37
Showing
9 changed files
with
54 additions
and
75 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
import { Directive, ElementRef } from '@angular/core'; | ||
import { | ||
Directive, | ||
ElementRef, | ||
NgModule, | ||
} from '@angular/core'; | ||
|
||
@Directive({ | ||
selector: '[toastContainer]', | ||
exportAs: 'toastContainer', | ||
standalone: true | ||
}) | ||
export class ToastContainerDirective { | ||
constructor(private el: ElementRef) { } | ||
getContainerElement(): HTMLElement { | ||
return this.el.nativeElement; | ||
} | ||
} | ||
|
||
@NgModule({ | ||
declarations: [ToastContainerDirective], | ||
exports: [ToastContainerDirective], | ||
}) | ||
export class ToastContainerModule {} |
This file was deleted.
Oops, something went wrong.
This file contains 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