Skip to content

Instantly share code, notes, and snippets.

Avatar

Sean Perkins sean-perkins

View GitHub Profile
@sean-perkins
sean-perkins / collapse-scroll.directive.ts
Last active Sep 3, 2018
Ionic 4 (beta.7+) Collapse Scroll Directive
View collapse-scroll.directive.ts
import { Directive, OnDestroy, Input, Renderer2, ElementRef, AfterViewInit } from '@angular/core';
import { Content } from '@ionic/angular';
import { takeUntil, tap } from 'rxjs/operators';
import { Subject } from 'rxjs';
/**
* Usage:
* <example-component [collapseScroll]="content"></example-content>
* Where: content = ion-content reference binding
*/
@Directive({
@sean-perkins
sean-perkins / linearicons.directive.ts
Created Sep 27, 2017
Linear Icons Directive for NativeScript Angular
View linearicons.directive.ts
import { Directive, Input, ElementRef } from '@angular/core';
@Directive({
selector: '[lnr]'
})
export class LinearIconsDirective {
private _icon: string;
constructor(private elementRef: ElementRef) { }
You can’t perform that action at this time.