-
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.
Rename legacy-directives to alias because we will keep them. Move alias-directory into directives. Add own NgModule holding only the aliases. Add own directory for modules.
- Loading branch information
1 parent
c96253e
commit 62a4194
Showing
15 changed files
with
50 additions
and
40 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
24 changes: 0 additions & 24 deletions
24
projects/ngx-intersection/src/lib/angular-intersection.module.ts
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...rectives/enter-viewport-once.directive.ts → ...es/alias/enter-viewport-once.directive.ts
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
2 changes: 1 addition & 1 deletion
2
...cy-directives/enter-viewport.directive.ts → ...ectives/alias/enter-viewport.directive.ts
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
2 changes: 1 addition & 1 deletion
2
...acy-directives/exit-viewport.directive.ts → ...rectives/alias/exit-viewport.directive.ts
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
2 changes: 1 addition & 1 deletion
2
...ectives/has-entered-viewport.directive.ts → ...s/alias/has-entered-viewport.directive.ts
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
2 changes: 1 addition & 1 deletion
2
...n/src/lib/legacy-directives/public-api.ts → ...on/src/lib/directives/alias/public-api.ts
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,5 +1,5 @@ | ||
export * from './enter-viewport.directive'; | ||
export * from './enter-viewport-once.directive'; | ||
export * from './will-enter-viewport.directive'; | ||
// export * from './has-entered-viewport.directive'; | ||
export * from './has-entered-viewport.directive'; | ||
export * from './exit-viewport.directive'; |
2 changes: 1 addition & 1 deletion
2
...rectives/will-enter-viewport.directive.ts → ...es/alias/will-enter-viewport.directive.ts
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,5 +1,5 @@ | ||
export * from './abstract.viewport.directive'; | ||
export * from './intersection-directives.module'; | ||
export * from './future/public-api'; | ||
export * from './past/public-api'; | ||
export * from './present/public-api'; | ||
export * from './alias/public-api'; |
11 changes: 11 additions & 0 deletions
11
projects/ngx-intersection/src/lib/modules/angular-intersection.module.ts
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { directivesAlias } from './intersection-directives-alias.module'; | ||
/** | ||
* This module is here only for legacy-reasons, but since it doesn't hold *any* | ||
* own logic we can easily keep on releasing it. | ||
*/ | ||
@NgModule({ | ||
declarations: directivesAlias, | ||
exports: directivesAlias | ||
}) | ||
export class AngularIntersectionModule {} |
22 changes: 22 additions & 0 deletions
22
projects/ngx-intersection/src/lib/modules/intersection-directives-alias.module.ts
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { | ||
EnterViewportDirective, | ||
EnterViewportOnceDirective, | ||
WillEnterViewportDirective, | ||
ExitViewportDirective, | ||
HasEnteredViewportDirective | ||
} from '../directives/alias/public-api'; | ||
|
||
export const directivesAlias = [ | ||
EnterViewportDirective, | ||
EnterViewportOnceDirective, | ||
WillEnterViewportDirective, | ||
ExitViewportDirective, | ||
HasEnteredViewportDirective | ||
]; | ||
|
||
@NgModule({ | ||
declarations: directivesAlias, | ||
exports: directivesAlias | ||
}) | ||
export class IntersectionDirectivesAliasModule {} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export * from './intersection-directives.module'; | ||
export * from './intersection-directives-alias.module'; | ||
export * from './angular-intersection.module'; |
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