Skip to content

Instantly share code, notes, and snippets.

@fkromer
Last active March 24, 2021 09:15
Show Gist options
  • Save fkromer/2145ba2bdd20880aac8280816cb1d24e to your computer and use it in GitHub Desktop.
Save fkromer/2145ba2bdd20880aac8280816cb1d24e to your computer and use it in GitHub Desktop.
...
import config from './../../config.json';
+import { BlubDirective } from './blub.directive';
// App Setup
@NgModule({
- declarations: [AppComponent],
+ declarations: [AppComponent, BlubDirective],
entryComponents: [],
...
import { BlubDirective } from './blub.directive';
describe('BlubDirective', () => {
it('should create an instance', () => {
const directive = new BlubDirective();
expect(directive).toBeTruthy();
});
});
import { Directive } from '@angular/core';
@Directive({
selector: '[appBlub]'
})
export class BlubDirective {
constructor() { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment