Skip to content

Instantly share code, notes, and snippets.

@codef0rmer
Created February 26, 2019 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codef0rmer/20b9e06a2d30f562c63f725a7d1cc7cd to your computer and use it in GitHub Desktop.
Save codef0rmer/20b9e06a2d30f562c63f725a7d1cc7cd to your computer and use it in GitHub Desktop.
// boys.directive.ts
import { Directive, ElementRef } from '@angular/core';
declare const $: any;
@Directive({
selector: '[appToolbarBoys]'
})
export class BoysDirective {
constructor(private el: ElementRef) {
$(this.el.nativeElement).toolbar({
content: '#toolbar-boys-options',
position: 'right'
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment