capsulated to directive
This commit is contained in:
8
src/app/canvas/canvas.directive.spec.ts
Normal file
8
src/app/canvas/canvas.directive.spec.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { CanvasDirective } from './canvas.directive';
|
||||
|
||||
describe('CanvasDirective', () => {
|
||||
it('should create an instance', () => {
|
||||
const directive = new CanvasDirective();
|
||||
expect(directive).toBeTruthy();
|
||||
});
|
||||
});
|
||||
10
src/app/canvas/canvas.directive.ts
Normal file
10
src/app/canvas/canvas.directive.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Directive } from '@angular/core';
|
||||
|
||||
@Directive({
|
||||
selector: '[appCanvas]'
|
||||
})
|
||||
export class CanvasDirective {
|
||||
|
||||
constructor() { }
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user