Skip to content

Commit

Permalink
feat(rx): add directive which uses intersection-observer
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbe812 committed Jan 15, 2023
1 parent a71a0ff commit 49647c6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import {ObserveIntersectionDirective} from './observe-intersection.directive';

describe('ObserveIntersectionDirective', () => {
it('should create an instance', () => {
const directive = new ObserveIntersectionDirective();
expect(directive).toBeTruthy();
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import {Directive, NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';

@Directive({
selector: '[angularKitObserveIntersection]',
})
export class ObserveIntersectionDirective {
// todo
// siehe angular-collection
// evtl auch inview directive portieren
constructor() {}
}

@NgModule({
imports: [CommonModule],
declarations: [ObserveIntersectionDirective],
exports: [ObserveIntersectionDirective],
})
export class ObserveIntersectionDirectiveModule {}

0 comments on commit 49647c6

Please sign in to comment.