Created
February 26, 2019 17:56
-
-
Save codef0rmer/20b9e06a2d30f562c63f725a7d1cc7cd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// 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