Skip to content

Commit 49647c6

Browse files
committed
feat(rx): add directive which uses intersection-observer
1 parent a71a0ff commit 49647c6

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import {ObserveIntersectionDirective} from './observe-intersection.directive';
2+
3+
describe('ObserveIntersectionDirective', () => {
4+
it('should create an instance', () => {
5+
const directive = new ObserveIntersectionDirective();
6+
expect(directive).toBeTruthy();
7+
});
8+
});
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import {Directive, NgModule} from '@angular/core';
2+
import {CommonModule} from '@angular/common';
3+
4+
@Directive({
5+
selector: '[angularKitObserveIntersection]',
6+
})
7+
export class ObserveIntersectionDirective {
8+
// todo
9+
// siehe angular-collection
10+
// evtl auch inview directive portieren
11+
constructor() {}
12+
}
13+
14+
@NgModule({
15+
imports: [CommonModule],
16+
declarations: [ObserveIntersectionDirective],
17+
exports: [ObserveIntersectionDirective],
18+
})
19+
export class ObserveIntersectionDirectiveModule {}

0 commit comments

Comments
 (0)